diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/iam.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/iam.dart index 8a2ff39b67..d4acc8b0f0 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/iam.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/iam.dart @@ -121,6 +121,8 @@ export 'package:smoke_test/src/sdk/src/iam/model/get_instance_profile_request.da export 'package:smoke_test/src/sdk/src/iam/model/get_instance_profile_response.dart'; export 'package:smoke_test/src/sdk/src/iam/model/get_login_profile_request.dart'; export 'package:smoke_test/src/sdk/src/iam/model/get_login_profile_response.dart'; +export 'package:smoke_test/src/sdk/src/iam/model/get_mfa_device_request.dart'; +export 'package:smoke_test/src/sdk/src/iam/model/get_mfa_device_response.dart'; export 'package:smoke_test/src/sdk/src/iam/model/get_open_id_connect_provider_request.dart'; export 'package:smoke_test/src/sdk/src/iam/model/get_open_id_connect_provider_response.dart'; export 'package:smoke_test/src/sdk/src/iam/model/get_organizations_access_report_request.dart'; diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/s3.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/s3.dart index aea5e61413..9aad2bd89a 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/s3.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/s3.dart @@ -319,6 +319,7 @@ export 'package:smoke_test/src/sdk/src/s3/model/object_part.dart'; export 'package:smoke_test/src/sdk/src/s3/model/object_storage_class.dart'; export 'package:smoke_test/src/sdk/src/s3/model/object_version.dart'; export 'package:smoke_test/src/sdk/src/s3/model/object_version_storage_class.dart'; +export 'package:smoke_test/src/sdk/src/s3/model/optional_object_attributes.dart'; export 'package:smoke_test/src/sdk/src/s3/model/output_location.dart'; export 'package:smoke_test/src/sdk/src/s3/model/output_serialization.dart'; export 'package:smoke_test/src/sdk/src/s3/model/owner.dart'; @@ -396,6 +397,7 @@ export 'package:smoke_test/src/sdk/src/s3/model/restore_object_output.dart' export 'package:smoke_test/src/sdk/src/s3/model/restore_object_request.dart'; export 'package:smoke_test/src/sdk/src/s3/model/restore_request.dart'; export 'package:smoke_test/src/sdk/src/s3/model/restore_request_type.dart'; +export 'package:smoke_test/src/sdk/src/s3/model/restore_status.dart'; export 'package:smoke_test/src/sdk/src/s3/model/routing_rule.dart'; export 'package:smoke_test/src/sdk/src/s3/model/s3_key_filter.dart'; export 'package:smoke_test/src/sdk/src/s3/model/s3_location.dart'; diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/common/serializers.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/common/serializers.dart index 94fd56ac9c..a07571e92a 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/common/serializers.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/common/serializers.dart @@ -9,480 +9,480 @@ import 'package:built_collection/built_collection.dart' as _i273; import 'package:built_value/serializer.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smoke_test/src/sdk/src/dynamo_db/model/archival_summary.dart' - as _i75; + as _i76; import 'package:smoke_test/src/sdk/src/dynamo_db/model/attribute_action.dart' as _i250; import 'package:smoke_test/src/sdk/src/dynamo_db/model/attribute_definition.dart' - as _i51; + as _i52; import 'package:smoke_test/src/sdk/src/dynamo_db/model/attribute_value.dart' as _i2; import 'package:smoke_test/src/sdk/src/dynamo_db/model/attribute_value_update.dart' as _i251; import 'package:smoke_test/src/sdk/src/dynamo_db/model/auto_scaling_policy_description.dart' - as _i126; + as _i127; import 'package:smoke_test/src/sdk/src/dynamo_db/model/auto_scaling_policy_update.dart' as _i242; import 'package:smoke_test/src/sdk/src/dynamo_db/model/auto_scaling_settings_description.dart' - as _i127; + as _i128; import 'package:smoke_test/src/sdk/src/dynamo_db/model/auto_scaling_settings_update.dart' as _i243; import 'package:smoke_test/src/sdk/src/dynamo_db/model/auto_scaling_target_tracking_scaling_policy_configuration_description.dart' - as _i125; + as _i126; import 'package:smoke_test/src/sdk/src/dynamo_db/model/auto_scaling_target_tracking_scaling_policy_configuration_update.dart' as _i241; import 'package:smoke_test/src/sdk/src/dynamo_db/model/backup_description.dart' - as _i86; + as _i87; import 'package:smoke_test/src/sdk/src/dynamo_db/model/backup_details.dart' - as _i31; + as _i32; import 'package:smoke_test/src/sdk/src/dynamo_db/model/backup_in_use_exception.dart' - as _i33; + as _i34; import 'package:smoke_test/src/sdk/src/dynamo_db/model/backup_not_found_exception.dart' - as _i88; + as _i89; import 'package:smoke_test/src/sdk/src/dynamo_db/model/backup_status.dart' - as _i29; + as _i30; import 'package:smoke_test/src/sdk/src/dynamo_db/model/backup_summary.dart' - as _i182; + as _i183; import 'package:smoke_test/src/sdk/src/dynamo_db/model/backup_type.dart' - as _i30; + as _i31; import 'package:smoke_test/src/sdk/src/dynamo_db/model/backup_type_filter.dart' - as _i180; + as _i181; import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_execute_statement_input.dart' - as _i5; + as _i6; import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_execute_statement_output.dart' - as _i11; + as _i12; import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_get_item_input.dart' - as _i15; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_get_item_output.dart' as _i16; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_get_item_output.dart' + as _i17; import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_statement_error.dart' - as _i7; + as _i8; import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_statement_error_code_enum.dart' - as _i6; + as _i7; import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_statement_request.dart' - as _i3; + as _i4; import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_statement_response.dart' - as _i8; + as _i9; import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_write_item_input.dart' - as _i24; + as _i25; import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_write_item_output.dart' - as _i26; + as _i27; import 'package:smoke_test/src/sdk/src/dynamo_db/model/billing_mode.dart' - as _i59; + as _i60; import 'package:smoke_test/src/sdk/src/dynamo_db/model/billing_mode_summary.dart' - as _i68; + as _i69; import 'package:smoke_test/src/sdk/src/dynamo_db/model/cancellation_reason.dart' - as _i167; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/capacity.dart' as _i9; + as _i168; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/capacity.dart' as _i10; import 'package:smoke_test/src/sdk/src/dynamo_db/model/comparison_operator.dart' - as _i89; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/condition.dart' as _i203; + as _i90; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/condition.dart' as _i204; import 'package:smoke_test/src/sdk/src/dynamo_db/model/condition_check.dart' as _i220; import 'package:smoke_test/src/sdk/src/dynamo_db/model/conditional_check_failed_exception.dart' - as _i95; + as _i96; import 'package:smoke_test/src/sdk/src/dynamo_db/model/conditional_operator.dart' - as _i91; + as _i92; import 'package:smoke_test/src/sdk/src/dynamo_db/model/consumed_capacity.dart' - as _i10; + as _i11; import 'package:smoke_test/src/sdk/src/dynamo_db/model/continuous_backups_description.dart' - as _i105; + as _i106; import 'package:smoke_test/src/sdk/src/dynamo_db/model/continuous_backups_status.dart' - as _i102; + as _i103; import 'package:smoke_test/src/sdk/src/dynamo_db/model/continuous_backups_unavailable_exception.dart' - as _i34; + as _i35; import 'package:smoke_test/src/sdk/src/dynamo_db/model/contributor_insights_action.dart' as _i231; import 'package:smoke_test/src/sdk/src/dynamo_db/model/contributor_insights_status.dart' - as _i108; + as _i109; import 'package:smoke_test/src/sdk/src/dynamo_db/model/contributor_insights_summary.dart' - as _i185; + as _i186; import 'package:smoke_test/src/sdk/src/dynamo_db/model/create_backup_input.dart' - as _i28; + as _i29; import 'package:smoke_test/src/sdk/src/dynamo_db/model/create_backup_output.dart' - as _i32; + as _i33; import 'package:smoke_test/src/sdk/src/dynamo_db/model/create_global_secondary_index_action.dart' as _i255; import 'package:smoke_test/src/sdk/src/dynamo_db/model/create_global_table_input.dart' - as _i39; + as _i40; import 'package:smoke_test/src/sdk/src/dynamo_db/model/create_global_table_output.dart' - as _i48; + as _i49; import 'package:smoke_test/src/sdk/src/dynamo_db/model/create_replica_action.dart' as _i234; import 'package:smoke_test/src/sdk/src/dynamo_db/model/create_replication_group_member_action.dart' as _i259; import 'package:smoke_test/src/sdk/src/dynamo_db/model/create_table_input.dart' - as _i65; + as _i66; import 'package:smoke_test/src/sdk/src/dynamo_db/model/create_table_output.dart' - as _i77; + as _i78; import 'package:smoke_test/src/sdk/src/dynamo_db/model/csv_options.dart' - as _i135; + as _i136; import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete.dart' as _i222; import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_backup_input.dart' - as _i79; + as _i80; import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_backup_output.dart' - as _i87; + as _i88; import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_global_secondary_index_action.dart' as _i256; import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_item_input.dart' - as _i93; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_item_output.dart' as _i94; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_item_output.dart' + as _i95; import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_replica_action.dart' as _i235; import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_replication_group_member_action.dart' as _i261; import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_request.dart' - as _i21; + as _i22; import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_table_input.dart' - as _i97; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_table_output.dart' as _i98; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_backup_input.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/delete_table_output.dart' as _i99; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_backup_output.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_backup_input.dart' as _i100; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_continuous_backups_input.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_backup_output.dart' as _i101; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_continuous_backups_input.dart' + as _i102; import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_continuous_backups_output.dart' - as _i106; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_contributor_insights_input.dart' as _i107; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_contributor_insights_input.dart' + as _i108; import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_contributor_insights_output.dart' - as _i110; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_endpoints_request.dart' as _i111; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_endpoints_request.dart' + as _i112; import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_endpoints_response.dart' - as _i113; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_export_input.dart' as _i114; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_export_input.dart' + as _i115; import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_export_output.dart' - as _i119; + as _i120; import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_global_table_input.dart' - as _i121; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_global_table_output.dart' as _i122; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_global_table_output.dart' + as _i123; import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_global_table_settings_input.dart' - as _i124; + as _i125; import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_global_table_settings_output.dart' - as _i130; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_import_input.dart' as _i131; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_import_input.dart' + as _i132; import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_import_output.dart' - as _i140; + as _i141; import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_kinesis_streaming_destination_input.dart' - as _i142; + as _i143; import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_kinesis_streaming_destination_output.dart' - as _i145; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_limits_input.dart' as _i146; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_limits_output.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_limits_input.dart' as _i147; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_table_input.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_limits_output.dart' as _i148; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_table_output.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_table_input.dart' as _i149; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_table_replica_auto_scaling_input.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_table_output.dart' as _i150; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_table_replica_auto_scaling_input.dart' + as _i151; import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_table_replica_auto_scaling_output.dart' - as _i154; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_time_to_live_input.dart' as _i155; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_time_to_live_output.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_time_to_live_input.dart' as _i156; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/describe_time_to_live_output.dart' + as _i157; import 'package:smoke_test/src/sdk/src/dynamo_db/model/destination_status.dart' - as _i143; + as _i144; import 'package:smoke_test/src/sdk/src/dynamo_db/model/duplicate_item_exception.dart' - as _i161; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/endpoint.dart' as _i112; + as _i162; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/endpoint.dart' as _i113; import 'package:smoke_test/src/sdk/src/dynamo_db/model/execute_statement_input.dart' - as _i159; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/execute_statement_output.dart' as _i160; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/execute_statement_output.dart' + as _i161; import 'package:smoke_test/src/sdk/src/dynamo_db/model/execute_transaction_input.dart' - as _i163; + as _i164; import 'package:smoke_test/src/sdk/src/dynamo_db/model/execute_transaction_output.dart' - as _i165; + as _i166; import 'package:smoke_test/src/sdk/src/dynamo_db/model/expected_attribute_value.dart' - as _i90; + as _i91; import 'package:smoke_test/src/sdk/src/dynamo_db/model/export_conflict_exception.dart' - as _i172; + as _i173; import 'package:smoke_test/src/sdk/src/dynamo_db/model/export_description.dart' - as _i118; + as _i119; import 'package:smoke_test/src/sdk/src/dynamo_db/model/export_format.dart' - as _i117; + as _i118; import 'package:smoke_test/src/sdk/src/dynamo_db/model/export_not_found_exception.dart' - as _i120; + as _i121; import 'package:smoke_test/src/sdk/src/dynamo_db/model/export_status.dart' - as _i115; + as _i116; import 'package:smoke_test/src/sdk/src/dynamo_db/model/export_summary.dart' - as _i188; + as _i189; import 'package:smoke_test/src/sdk/src/dynamo_db/model/export_table_to_point_in_time_input.dart' - as _i170; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/export_table_to_point_in_time_output.dart' as _i171; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/export_table_to_point_in_time_output.dart' + as _i172; import 'package:smoke_test/src/sdk/src/dynamo_db/model/failure_exception.dart' - as _i109; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/get.dart' as _i215; + as _i110; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/get.dart' as _i216; import 'package:smoke_test/src/sdk/src/dynamo_db/model/get_item_input.dart' - as _i175; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/get_item_output.dart' as _i176; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/get_item_output.dart' + as _i177; import 'package:smoke_test/src/sdk/src/dynamo_db/model/global_secondary_index.dart' - as _i58; + as _i59; import 'package:smoke_test/src/sdk/src/dynamo_db/model/global_secondary_index_auto_scaling_update.dart' as _i265; import 'package:smoke_test/src/sdk/src/dynamo_db/model/global_secondary_index_description.dart' - as _i71; + as _i72; import 'package:smoke_test/src/sdk/src/dynamo_db/model/global_secondary_index_info.dart' - as _i82; + as _i83; import 'package:smoke_test/src/sdk/src/dynamo_db/model/global_secondary_index_update.dart' as _i257; import 'package:smoke_test/src/sdk/src/dynamo_db/model/global_table.dart' - as _i191; + as _i192; import 'package:smoke_test/src/sdk/src/dynamo_db/model/global_table_already_exists_exception.dart' - as _i49; + as _i50; import 'package:smoke_test/src/sdk/src/dynamo_db/model/global_table_description.dart' - as _i47; + as _i48; import 'package:smoke_test/src/sdk/src/dynamo_db/model/global_table_global_secondary_index_settings_update.dart' as _i244; import 'package:smoke_test/src/sdk/src/dynamo_db/model/global_table_not_found_exception.dart' - as _i123; + as _i124; import 'package:smoke_test/src/sdk/src/dynamo_db/model/global_table_status.dart' - as _i46; + as _i47; import 'package:smoke_test/src/sdk/src/dynamo_db/model/idempotent_parameter_mismatch_exception.dart' - as _i166; + as _i167; import 'package:smoke_test/src/sdk/src/dynamo_db/model/import_conflict_exception.dart' - as _i179; + as _i180; import 'package:smoke_test/src/sdk/src/dynamo_db/model/import_not_found_exception.dart' - as _i141; + as _i142; import 'package:smoke_test/src/sdk/src/dynamo_db/model/import_status.dart' - as _i132; + as _i133; import 'package:smoke_test/src/sdk/src/dynamo_db/model/import_summary.dart' - as _i194; + as _i195; import 'package:smoke_test/src/sdk/src/dynamo_db/model/import_table_description.dart' - as _i139; + as _i140; import 'package:smoke_test/src/sdk/src/dynamo_db/model/import_table_input.dart' - as _i177; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/import_table_output.dart' as _i178; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/import_table_output.dart' + as _i179; import 'package:smoke_test/src/sdk/src/dynamo_db/model/index_not_found_exception.dart' as _i249; import 'package:smoke_test/src/sdk/src/dynamo_db/model/index_status.dart' - as _i70; + as _i71; import 'package:smoke_test/src/sdk/src/dynamo_db/model/input_compression_type.dart' - as _i137; + as _i138; import 'package:smoke_test/src/sdk/src/dynamo_db/model/input_format.dart' - as _i134; + as _i135; import 'package:smoke_test/src/sdk/src/dynamo_db/model/input_format_options.dart' - as _i136; + as _i137; import 'package:smoke_test/src/sdk/src/dynamo_db/model/internal_server_error.dart' - as _i12; + as _i13; import 'package:smoke_test/src/sdk/src/dynamo_db/model/invalid_endpoint_exception.dart' - as _i17; + as _i18; import 'package:smoke_test/src/sdk/src/dynamo_db/model/invalid_export_time_exception.dart' - as _i173; + as _i174; import 'package:smoke_test/src/sdk/src/dynamo_db/model/invalid_restore_time_exception.dart' - as _i211; + as _i212; import 'package:smoke_test/src/sdk/src/dynamo_db/model/item_collection_metrics.dart' - as _i25; + as _i26; import 'package:smoke_test/src/sdk/src/dynamo_db/model/item_collection_size_limit_exceeded_exception.dart' - as _i27; + as _i28; import 'package:smoke_test/src/sdk/src/dynamo_db/model/item_response.dart' - as _i164; + as _i165; import 'package:smoke_test/src/sdk/src/dynamo_db/model/key_schema_element.dart' - as _i53; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/key_type.dart' as _i52; + as _i54; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/key_type.dart' as _i53; import 'package:smoke_test/src/sdk/src/dynamo_db/model/keys_and_attributes.dart' - as _i14; + as _i15; import 'package:smoke_test/src/sdk/src/dynamo_db/model/kinesis_data_stream_destination.dart' - as _i144; + as _i145; import 'package:smoke_test/src/sdk/src/dynamo_db/model/kinesis_streaming_destination_input.dart' - as _i157; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/kinesis_streaming_destination_output.dart' as _i158; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/kinesis_streaming_destination_output.dart' + as _i159; import 'package:smoke_test/src/sdk/src/dynamo_db/model/limit_exceeded_exception.dart' - as _i35; + as _i36; import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_backups_input.dart' - as _i181; + as _i182; import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_backups_output.dart' - as _i183; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_contributor_insights_input.dart' as _i184; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_contributor_insights_input.dart' + as _i185; import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_contributor_insights_output.dart' - as _i186; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_exports_input.dart' as _i187; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_exports_input.dart' + as _i188; import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_exports_output.dart' - as _i189; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_global_tables_input.dart' as _i190; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_global_tables_input.dart' + as _i191; import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_global_tables_output.dart' - as _i192; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_imports_input.dart' as _i193; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_imports_input.dart' + as _i194; import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_imports_output.dart' - as _i195; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_tables_input.dart' as _i196; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_tables_output.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_tables_input.dart' as _i197; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_tags_of_resource_input.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_tables_output.dart' as _i198; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_tags_of_resource_output.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_tags_of_resource_input.dart' as _i199; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/list_tags_of_resource_output.dart' + as _i200; import 'package:smoke_test/src/sdk/src/dynamo_db/model/local_secondary_index.dart' - as _i56; + as _i57; import 'package:smoke_test/src/sdk/src/dynamo_db/model/local_secondary_index_description.dart' - as _i69; + as _i70; import 'package:smoke_test/src/sdk/src/dynamo_db/model/local_secondary_index_info.dart' - as _i81; + as _i82; import 'package:smoke_test/src/sdk/src/dynamo_db/model/parameterized_statement.dart' - as _i162; + as _i163; import 'package:smoke_test/src/sdk/src/dynamo_db/model/point_in_time_recovery_description.dart' - as _i104; + as _i105; import 'package:smoke_test/src/sdk/src/dynamo_db/model/point_in_time_recovery_specification.dart' as _i228; import 'package:smoke_test/src/sdk/src/dynamo_db/model/point_in_time_recovery_status.dart' - as _i103; + as _i104; import 'package:smoke_test/src/sdk/src/dynamo_db/model/point_in_time_recovery_unavailable_exception.dart' - as _i174; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/projection.dart' as _i55; + as _i175; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/projection.dart' as _i56; import 'package:smoke_test/src/sdk/src/dynamo_db/model/projection_type.dart' - as _i54; + as _i55; import 'package:smoke_test/src/sdk/src/dynamo_db/model/provisioned_throughput.dart' - as _i57; + as _i58; import 'package:smoke_test/src/sdk/src/dynamo_db/model/provisioned_throughput_description.dart' - as _i67; + as _i68; import 'package:smoke_test/src/sdk/src/dynamo_db/model/provisioned_throughput_exceeded_exception.dart' - as _i18; + as _i19; import 'package:smoke_test/src/sdk/src/dynamo_db/model/provisioned_throughput_override.dart' - as _i41; + as _i42; import 'package:smoke_test/src/sdk/src/dynamo_db/model/put.dart' as _i221; import 'package:smoke_test/src/sdk/src/dynamo_db/model/put_item_input.dart' - as _i200; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/put_item_output.dart' as _i201; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/put_item_output.dart' + as _i202; import 'package:smoke_test/src/sdk/src/dynamo_db/model/put_request.dart' - as _i20; + as _i21; import 'package:smoke_test/src/sdk/src/dynamo_db/model/query_input.dart' - as _i204; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/query_output.dart' as _i205; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica.dart' as _i38; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/query_output.dart' + as _i206; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica.dart' as _i39; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_already_exists_exception.dart' as _i239; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_auto_scaling_description.dart' - as _i152; + as _i153; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_auto_scaling_update.dart' as _i267; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_description.dart' - as _i45; + as _i46; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_global_secondary_index.dart' as _i258; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_global_secondary_index_auto_scaling_description.dart' - as _i151; + as _i152; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_global_secondary_index_auto_scaling_update.dart' as _i266; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_global_secondary_index_description.dart' - as _i42; + as _i43; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_global_secondary_index_settings_description.dart' - as _i128; + as _i129; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_global_secondary_index_settings_update.dart' as _i245; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_not_found_exception.dart' as _i240; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_settings_description.dart' - as _i129; + as _i130; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_settings_update.dart' as _i246; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_status.dart' - as _i40; + as _i41; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replica_update.dart' as _i236; import 'package:smoke_test/src/sdk/src/dynamo_db/model/replication_group_update.dart' as _i262; import 'package:smoke_test/src/sdk/src/dynamo_db/model/request_limit_exceeded.dart' - as _i13; + as _i14; import 'package:smoke_test/src/sdk/src/dynamo_db/model/resource_in_use_exception.dart' - as _i78; + as _i79; import 'package:smoke_test/src/sdk/src/dynamo_db/model/resource_not_found_exception.dart' - as _i19; + as _i20; import 'package:smoke_test/src/sdk/src/dynamo_db/model/restore_summary.dart' - as _i72; + as _i73; import 'package:smoke_test/src/sdk/src/dynamo_db/model/restore_table_from_backup_input.dart' - as _i206; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/restore_table_from_backup_output.dart' as _i207; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/restore_table_from_backup_output.dart' + as _i208; import 'package:smoke_test/src/sdk/src/dynamo_db/model/restore_table_to_point_in_time_input.dart' - as _i209; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/restore_table_to_point_in_time_output.dart' as _i210; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/restore_table_to_point_in_time_output.dart' + as _i211; import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_consumed_capacity.dart' - as _i4; + as _i5; import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_item_collection_metrics.dart' - as _i23; + as _i24; import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_value.dart' - as _i92; + as _i93; import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_values_on_condition_check_failure.dart' - as _i219; + as _i3; import 'package:smoke_test/src/sdk/src/dynamo_db/model/s3_bucket_source.dart' - as _i133; + as _i134; import 'package:smoke_test/src/sdk/src/dynamo_db/model/s3_sse_algorithm.dart' - as _i116; + as _i117; import 'package:smoke_test/src/sdk/src/dynamo_db/model/scalar_attribute_type.dart' - as _i50; + as _i51; import 'package:smoke_test/src/sdk/src/dynamo_db/model/scan_input.dart' - as _i212; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/scan_output.dart' as _i213; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/select.dart' as _i202; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/scan_output.dart' + as _i214; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/select.dart' as _i203; import 'package:smoke_test/src/sdk/src/dynamo_db/model/source_table_details.dart' - as _i80; + as _i81; import 'package:smoke_test/src/sdk/src/dynamo_db/model/source_table_feature_details.dart' - as _i85; + as _i86; import 'package:smoke_test/src/sdk/src/dynamo_db/model/sse_description.dart' - as _i74; + as _i75; import 'package:smoke_test/src/sdk/src/dynamo_db/model/sse_specification.dart' - as _i63; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/sse_status.dart' as _i73; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/sse_type.dart' as _i62; + as _i64; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/sse_status.dart' as _i74; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/sse_type.dart' as _i63; import 'package:smoke_test/src/sdk/src/dynamo_db/model/stream_specification.dart' - as _i61; + as _i62; import 'package:smoke_test/src/sdk/src/dynamo_db/model/stream_view_type.dart' - as _i60; + as _i61; import 'package:smoke_test/src/sdk/src/dynamo_db/model/table_already_exists_exception.dart' - as _i208; + as _i209; import 'package:smoke_test/src/sdk/src/dynamo_db/model/table_auto_scaling_description.dart' - as _i153; + as _i154; import 'package:smoke_test/src/sdk/src/dynamo_db/model/table_class.dart' - as _i43; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/table_class_summary.dart' as _i44; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/table_class_summary.dart' + as _i45; import 'package:smoke_test/src/sdk/src/dynamo_db/model/table_creation_parameters.dart' - as _i138; + as _i139; import 'package:smoke_test/src/sdk/src/dynamo_db/model/table_description.dart' - as _i76; + as _i77; import 'package:smoke_test/src/sdk/src/dynamo_db/model/table_in_use_exception.dart' - as _i36; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/table_not_found_exception.dart' as _i37; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/table_not_found_exception.dart' + as _i38; import 'package:smoke_test/src/sdk/src/dynamo_db/model/table_status.dart' - as _i66; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/tag.dart' as _i64; + as _i67; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/tag.dart' as _i65; import 'package:smoke_test/src/sdk/src/dynamo_db/model/tag_resource_input.dart' - as _i214; + as _i215; import 'package:smoke_test/src/sdk/src/dynamo_db/model/time_to_live_description.dart' - as _i84; + as _i85; import 'package:smoke_test/src/sdk/src/dynamo_db/model/time_to_live_specification.dart' as _i270; import 'package:smoke_test/src/sdk/src/dynamo_db/model/time_to_live_status.dart' - as _i83; + as _i84; import 'package:smoke_test/src/sdk/src/dynamo_db/model/transact_get_item.dart' - as _i216; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/transact_get_items_input.dart' as _i217; -import 'package:smoke_test/src/sdk/src/dynamo_db/model/transact_get_items_output.dart' +import 'package:smoke_test/src/sdk/src/dynamo_db/model/transact_get_items_input.dart' as _i218; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/transact_get_items_output.dart' + as _i219; import 'package:smoke_test/src/sdk/src/dynamo_db/model/transact_write_item.dart' as _i224; import 'package:smoke_test/src/sdk/src/dynamo_db/model/transact_write_items_input.dart' @@ -490,11 +490,11 @@ import 'package:smoke_test/src/sdk/src/dynamo_db/model/transact_write_items_inpu import 'package:smoke_test/src/sdk/src/dynamo_db/model/transact_write_items_output.dart' as _i226; import 'package:smoke_test/src/sdk/src/dynamo_db/model/transaction_canceled_exception.dart' - as _i168; + as _i169; import 'package:smoke_test/src/sdk/src/dynamo_db/model/transaction_conflict_exception.dart' - as _i96; + as _i97; import 'package:smoke_test/src/sdk/src/dynamo_db/model/transaction_in_progress_exception.dart' - as _i169; + as _i170; import 'package:smoke_test/src/sdk/src/dynamo_db/model/untag_resource_input.dart' as _i227; import 'package:smoke_test/src/sdk/src/dynamo_db/model/update.dart' as _i223; @@ -535,228 +535,228 @@ import 'package:smoke_test/src/sdk/src/dynamo_db/model/update_time_to_live_input import 'package:smoke_test/src/sdk/src/dynamo_db/model/update_time_to_live_output.dart' as _i272; import 'package:smoke_test/src/sdk/src/dynamo_db/model/write_request.dart' - as _i22; + as _i23; const List<_i1.SmithySerializer> serializers = [ ..._i2.AttributeValue.serializers, - ..._i3.BatchStatementRequest.serializers, - ..._i4.ReturnConsumedCapacity.serializers, - ..._i5.BatchExecuteStatementInput.serializers, - ..._i6.BatchStatementErrorCodeEnum.serializers, - ..._i7.BatchStatementError.serializers, - ..._i8.BatchStatementResponse.serializers, - ..._i9.Capacity.serializers, - ..._i10.ConsumedCapacity.serializers, - ..._i11.BatchExecuteStatementOutput.serializers, - ..._i12.InternalServerError.serializers, - ..._i13.RequestLimitExceeded.serializers, - ..._i14.KeysAndAttributes.serializers, - ..._i15.BatchGetItemInput.serializers, - ..._i16.BatchGetItemOutput.serializers, - ..._i17.InvalidEndpointException.serializers, - ..._i18.ProvisionedThroughputExceededException.serializers, - ..._i19.ResourceNotFoundException.serializers, - ..._i20.PutRequest.serializers, - ..._i21.DeleteRequest.serializers, - ..._i22.WriteRequest.serializers, - ..._i23.ReturnItemCollectionMetrics.serializers, - ..._i24.BatchWriteItemInput.serializers, - ..._i25.ItemCollectionMetrics.serializers, - ..._i26.BatchWriteItemOutput.serializers, - ..._i27.ItemCollectionSizeLimitExceededException.serializers, - ..._i28.CreateBackupInput.serializers, - ..._i29.BackupStatus.serializers, - ..._i30.BackupType.serializers, - ..._i31.BackupDetails.serializers, - ..._i32.CreateBackupOutput.serializers, - ..._i33.BackupInUseException.serializers, - ..._i34.ContinuousBackupsUnavailableException.serializers, - ..._i35.LimitExceededException.serializers, - ..._i36.TableInUseException.serializers, - ..._i37.TableNotFoundException.serializers, - ..._i38.Replica.serializers, - ..._i39.CreateGlobalTableInput.serializers, - ..._i40.ReplicaStatus.serializers, - ..._i41.ProvisionedThroughputOverride.serializers, - ..._i42.ReplicaGlobalSecondaryIndexDescription.serializers, - ..._i43.TableClass.serializers, - ..._i44.TableClassSummary.serializers, - ..._i45.ReplicaDescription.serializers, - ..._i46.GlobalTableStatus.serializers, - ..._i47.GlobalTableDescription.serializers, - ..._i48.CreateGlobalTableOutput.serializers, - ..._i49.GlobalTableAlreadyExistsException.serializers, - ..._i50.ScalarAttributeType.serializers, - ..._i51.AttributeDefinition.serializers, - ..._i52.KeyType.serializers, - ..._i53.KeySchemaElement.serializers, - ..._i54.ProjectionType.serializers, - ..._i55.Projection.serializers, - ..._i56.LocalSecondaryIndex.serializers, - ..._i57.ProvisionedThroughput.serializers, - ..._i58.GlobalSecondaryIndex.serializers, - ..._i59.BillingMode.serializers, - ..._i60.StreamViewType.serializers, - ..._i61.StreamSpecification.serializers, - ..._i62.SseType.serializers, - ..._i63.SseSpecification.serializers, - ..._i64.Tag.serializers, - ..._i65.CreateTableInput.serializers, - ..._i66.TableStatus.serializers, - ..._i67.ProvisionedThroughputDescription.serializers, - ..._i68.BillingModeSummary.serializers, - ..._i69.LocalSecondaryIndexDescription.serializers, - ..._i70.IndexStatus.serializers, - ..._i71.GlobalSecondaryIndexDescription.serializers, - ..._i72.RestoreSummary.serializers, - ..._i73.SseStatus.serializers, - ..._i74.SseDescription.serializers, - ..._i75.ArchivalSummary.serializers, - ..._i76.TableDescription.serializers, - ..._i77.CreateTableOutput.serializers, - ..._i78.ResourceInUseException.serializers, - ..._i79.DeleteBackupInput.serializers, - ..._i80.SourceTableDetails.serializers, - ..._i81.LocalSecondaryIndexInfo.serializers, - ..._i82.GlobalSecondaryIndexInfo.serializers, - ..._i83.TimeToLiveStatus.serializers, - ..._i84.TimeToLiveDescription.serializers, - ..._i85.SourceTableFeatureDetails.serializers, - ..._i86.BackupDescription.serializers, - ..._i87.DeleteBackupOutput.serializers, - ..._i88.BackupNotFoundException.serializers, - ..._i89.ComparisonOperator.serializers, - ..._i90.ExpectedAttributeValue.serializers, - ..._i91.ConditionalOperator.serializers, - ..._i92.ReturnValue.serializers, - ..._i93.DeleteItemInput.serializers, - ..._i94.DeleteItemOutput.serializers, - ..._i95.ConditionalCheckFailedException.serializers, - ..._i96.TransactionConflictException.serializers, - ..._i97.DeleteTableInput.serializers, - ..._i98.DeleteTableOutput.serializers, - ..._i99.DescribeBackupInput.serializers, - ..._i100.DescribeBackupOutput.serializers, - ..._i101.DescribeContinuousBackupsInput.serializers, - ..._i102.ContinuousBackupsStatus.serializers, - ..._i103.PointInTimeRecoveryStatus.serializers, - ..._i104.PointInTimeRecoveryDescription.serializers, - ..._i105.ContinuousBackupsDescription.serializers, - ..._i106.DescribeContinuousBackupsOutput.serializers, - ..._i107.DescribeContributorInsightsInput.serializers, - ..._i108.ContributorInsightsStatus.serializers, - ..._i109.FailureException.serializers, - ..._i110.DescribeContributorInsightsOutput.serializers, - ..._i111.DescribeEndpointsRequest.serializers, - ..._i112.Endpoint.serializers, - ..._i113.DescribeEndpointsResponse.serializers, - ..._i114.DescribeExportInput.serializers, - ..._i115.ExportStatus.serializers, - ..._i116.S3SseAlgorithm.serializers, - ..._i117.ExportFormat.serializers, - ..._i118.ExportDescription.serializers, - ..._i119.DescribeExportOutput.serializers, - ..._i120.ExportNotFoundException.serializers, - ..._i121.DescribeGlobalTableInput.serializers, - ..._i122.DescribeGlobalTableOutput.serializers, - ..._i123.GlobalTableNotFoundException.serializers, - ..._i124.DescribeGlobalTableSettingsInput.serializers, - ..._i125.AutoScalingTargetTrackingScalingPolicyConfigurationDescription + ..._i3.ReturnValuesOnConditionCheckFailure.serializers, + ..._i4.BatchStatementRequest.serializers, + ..._i5.ReturnConsumedCapacity.serializers, + ..._i6.BatchExecuteStatementInput.serializers, + ..._i7.BatchStatementErrorCodeEnum.serializers, + ..._i8.BatchStatementError.serializers, + ..._i9.BatchStatementResponse.serializers, + ..._i10.Capacity.serializers, + ..._i11.ConsumedCapacity.serializers, + ..._i12.BatchExecuteStatementOutput.serializers, + ..._i13.InternalServerError.serializers, + ..._i14.RequestLimitExceeded.serializers, + ..._i15.KeysAndAttributes.serializers, + ..._i16.BatchGetItemInput.serializers, + ..._i17.BatchGetItemOutput.serializers, + ..._i18.InvalidEndpointException.serializers, + ..._i19.ProvisionedThroughputExceededException.serializers, + ..._i20.ResourceNotFoundException.serializers, + ..._i21.PutRequest.serializers, + ..._i22.DeleteRequest.serializers, + ..._i23.WriteRequest.serializers, + ..._i24.ReturnItemCollectionMetrics.serializers, + ..._i25.BatchWriteItemInput.serializers, + ..._i26.ItemCollectionMetrics.serializers, + ..._i27.BatchWriteItemOutput.serializers, + ..._i28.ItemCollectionSizeLimitExceededException.serializers, + ..._i29.CreateBackupInput.serializers, + ..._i30.BackupStatus.serializers, + ..._i31.BackupType.serializers, + ..._i32.BackupDetails.serializers, + ..._i33.CreateBackupOutput.serializers, + ..._i34.BackupInUseException.serializers, + ..._i35.ContinuousBackupsUnavailableException.serializers, + ..._i36.LimitExceededException.serializers, + ..._i37.TableInUseException.serializers, + ..._i38.TableNotFoundException.serializers, + ..._i39.Replica.serializers, + ..._i40.CreateGlobalTableInput.serializers, + ..._i41.ReplicaStatus.serializers, + ..._i42.ProvisionedThroughputOverride.serializers, + ..._i43.ReplicaGlobalSecondaryIndexDescription.serializers, + ..._i44.TableClass.serializers, + ..._i45.TableClassSummary.serializers, + ..._i46.ReplicaDescription.serializers, + ..._i47.GlobalTableStatus.serializers, + ..._i48.GlobalTableDescription.serializers, + ..._i49.CreateGlobalTableOutput.serializers, + ..._i50.GlobalTableAlreadyExistsException.serializers, + ..._i51.ScalarAttributeType.serializers, + ..._i52.AttributeDefinition.serializers, + ..._i53.KeyType.serializers, + ..._i54.KeySchemaElement.serializers, + ..._i55.ProjectionType.serializers, + ..._i56.Projection.serializers, + ..._i57.LocalSecondaryIndex.serializers, + ..._i58.ProvisionedThroughput.serializers, + ..._i59.GlobalSecondaryIndex.serializers, + ..._i60.BillingMode.serializers, + ..._i61.StreamViewType.serializers, + ..._i62.StreamSpecification.serializers, + ..._i63.SseType.serializers, + ..._i64.SseSpecification.serializers, + ..._i65.Tag.serializers, + ..._i66.CreateTableInput.serializers, + ..._i67.TableStatus.serializers, + ..._i68.ProvisionedThroughputDescription.serializers, + ..._i69.BillingModeSummary.serializers, + ..._i70.LocalSecondaryIndexDescription.serializers, + ..._i71.IndexStatus.serializers, + ..._i72.GlobalSecondaryIndexDescription.serializers, + ..._i73.RestoreSummary.serializers, + ..._i74.SseStatus.serializers, + ..._i75.SseDescription.serializers, + ..._i76.ArchivalSummary.serializers, + ..._i77.TableDescription.serializers, + ..._i78.CreateTableOutput.serializers, + ..._i79.ResourceInUseException.serializers, + ..._i80.DeleteBackupInput.serializers, + ..._i81.SourceTableDetails.serializers, + ..._i82.LocalSecondaryIndexInfo.serializers, + ..._i83.GlobalSecondaryIndexInfo.serializers, + ..._i84.TimeToLiveStatus.serializers, + ..._i85.TimeToLiveDescription.serializers, + ..._i86.SourceTableFeatureDetails.serializers, + ..._i87.BackupDescription.serializers, + ..._i88.DeleteBackupOutput.serializers, + ..._i89.BackupNotFoundException.serializers, + ..._i90.ComparisonOperator.serializers, + ..._i91.ExpectedAttributeValue.serializers, + ..._i92.ConditionalOperator.serializers, + ..._i93.ReturnValue.serializers, + ..._i94.DeleteItemInput.serializers, + ..._i95.DeleteItemOutput.serializers, + ..._i96.ConditionalCheckFailedException.serializers, + ..._i97.TransactionConflictException.serializers, + ..._i98.DeleteTableInput.serializers, + ..._i99.DeleteTableOutput.serializers, + ..._i100.DescribeBackupInput.serializers, + ..._i101.DescribeBackupOutput.serializers, + ..._i102.DescribeContinuousBackupsInput.serializers, + ..._i103.ContinuousBackupsStatus.serializers, + ..._i104.PointInTimeRecoveryStatus.serializers, + ..._i105.PointInTimeRecoveryDescription.serializers, + ..._i106.ContinuousBackupsDescription.serializers, + ..._i107.DescribeContinuousBackupsOutput.serializers, + ..._i108.DescribeContributorInsightsInput.serializers, + ..._i109.ContributorInsightsStatus.serializers, + ..._i110.FailureException.serializers, + ..._i111.DescribeContributorInsightsOutput.serializers, + ..._i112.DescribeEndpointsRequest.serializers, + ..._i113.Endpoint.serializers, + ..._i114.DescribeEndpointsResponse.serializers, + ..._i115.DescribeExportInput.serializers, + ..._i116.ExportStatus.serializers, + ..._i117.S3SseAlgorithm.serializers, + ..._i118.ExportFormat.serializers, + ..._i119.ExportDescription.serializers, + ..._i120.DescribeExportOutput.serializers, + ..._i121.ExportNotFoundException.serializers, + ..._i122.DescribeGlobalTableInput.serializers, + ..._i123.DescribeGlobalTableOutput.serializers, + ..._i124.GlobalTableNotFoundException.serializers, + ..._i125.DescribeGlobalTableSettingsInput.serializers, + ..._i126.AutoScalingTargetTrackingScalingPolicyConfigurationDescription .serializers, - ..._i126.AutoScalingPolicyDescription.serializers, - ..._i127.AutoScalingSettingsDescription.serializers, - ..._i128.ReplicaGlobalSecondaryIndexSettingsDescription.serializers, - ..._i129.ReplicaSettingsDescription.serializers, - ..._i130.DescribeGlobalTableSettingsOutput.serializers, - ..._i131.DescribeImportInput.serializers, - ..._i132.ImportStatus.serializers, - ..._i133.S3BucketSource.serializers, - ..._i134.InputFormat.serializers, - ..._i135.CsvOptions.serializers, - ..._i136.InputFormatOptions.serializers, - ..._i137.InputCompressionType.serializers, - ..._i138.TableCreationParameters.serializers, - ..._i139.ImportTableDescription.serializers, - ..._i140.DescribeImportOutput.serializers, - ..._i141.ImportNotFoundException.serializers, - ..._i142.DescribeKinesisStreamingDestinationInput.serializers, - ..._i143.DestinationStatus.serializers, - ..._i144.KinesisDataStreamDestination.serializers, - ..._i145.DescribeKinesisStreamingDestinationOutput.serializers, - ..._i146.DescribeLimitsInput.serializers, - ..._i147.DescribeLimitsOutput.serializers, - ..._i148.DescribeTableInput.serializers, - ..._i149.DescribeTableOutput.serializers, - ..._i150.DescribeTableReplicaAutoScalingInput.serializers, - ..._i151.ReplicaGlobalSecondaryIndexAutoScalingDescription.serializers, - ..._i152.ReplicaAutoScalingDescription.serializers, - ..._i153.TableAutoScalingDescription.serializers, - ..._i154.DescribeTableReplicaAutoScalingOutput.serializers, - ..._i155.DescribeTimeToLiveInput.serializers, - ..._i156.DescribeTimeToLiveOutput.serializers, - ..._i157.KinesisStreamingDestinationInput.serializers, - ..._i158.KinesisStreamingDestinationOutput.serializers, - ..._i159.ExecuteStatementInput.serializers, - ..._i160.ExecuteStatementOutput.serializers, - ..._i161.DuplicateItemException.serializers, - ..._i162.ParameterizedStatement.serializers, - ..._i163.ExecuteTransactionInput.serializers, - ..._i164.ItemResponse.serializers, - ..._i165.ExecuteTransactionOutput.serializers, - ..._i166.IdempotentParameterMismatchException.serializers, - ..._i167.CancellationReason.serializers, - ..._i168.TransactionCanceledException.serializers, - ..._i169.TransactionInProgressException.serializers, - ..._i170.ExportTableToPointInTimeInput.serializers, - ..._i171.ExportTableToPointInTimeOutput.serializers, - ..._i172.ExportConflictException.serializers, - ..._i173.InvalidExportTimeException.serializers, - ..._i174.PointInTimeRecoveryUnavailableException.serializers, - ..._i175.GetItemInput.serializers, - ..._i176.GetItemOutput.serializers, - ..._i177.ImportTableInput.serializers, - ..._i178.ImportTableOutput.serializers, - ..._i179.ImportConflictException.serializers, - ..._i180.BackupTypeFilter.serializers, - ..._i181.ListBackupsInput.serializers, - ..._i182.BackupSummary.serializers, - ..._i183.ListBackupsOutput.serializers, - ..._i184.ListContributorInsightsInput.serializers, - ..._i185.ContributorInsightsSummary.serializers, - ..._i186.ListContributorInsightsOutput.serializers, - ..._i187.ListExportsInput.serializers, - ..._i188.ExportSummary.serializers, - ..._i189.ListExportsOutput.serializers, - ..._i190.ListGlobalTablesInput.serializers, - ..._i191.GlobalTable.serializers, - ..._i192.ListGlobalTablesOutput.serializers, - ..._i193.ListImportsInput.serializers, - ..._i194.ImportSummary.serializers, - ..._i195.ListImportsOutput.serializers, - ..._i196.ListTablesInput.serializers, - ..._i197.ListTablesOutput.serializers, - ..._i198.ListTagsOfResourceInput.serializers, - ..._i199.ListTagsOfResourceOutput.serializers, - ..._i200.PutItemInput.serializers, - ..._i201.PutItemOutput.serializers, - ..._i202.Select.serializers, - ..._i203.Condition.serializers, - ..._i204.QueryInput.serializers, - ..._i205.QueryOutput.serializers, - ..._i206.RestoreTableFromBackupInput.serializers, - ..._i207.RestoreTableFromBackupOutput.serializers, - ..._i208.TableAlreadyExistsException.serializers, - ..._i209.RestoreTableToPointInTimeInput.serializers, - ..._i210.RestoreTableToPointInTimeOutput.serializers, - ..._i211.InvalidRestoreTimeException.serializers, - ..._i212.ScanInput.serializers, - ..._i213.ScanOutput.serializers, - ..._i214.TagResourceInput.serializers, - ..._i215.Get.serializers, - ..._i216.TransactGetItem.serializers, - ..._i217.TransactGetItemsInput.serializers, - ..._i218.TransactGetItemsOutput.serializers, - ..._i219.ReturnValuesOnConditionCheckFailure.serializers, + ..._i127.AutoScalingPolicyDescription.serializers, + ..._i128.AutoScalingSettingsDescription.serializers, + ..._i129.ReplicaGlobalSecondaryIndexSettingsDescription.serializers, + ..._i130.ReplicaSettingsDescription.serializers, + ..._i131.DescribeGlobalTableSettingsOutput.serializers, + ..._i132.DescribeImportInput.serializers, + ..._i133.ImportStatus.serializers, + ..._i134.S3BucketSource.serializers, + ..._i135.InputFormat.serializers, + ..._i136.CsvOptions.serializers, + ..._i137.InputFormatOptions.serializers, + ..._i138.InputCompressionType.serializers, + ..._i139.TableCreationParameters.serializers, + ..._i140.ImportTableDescription.serializers, + ..._i141.DescribeImportOutput.serializers, + ..._i142.ImportNotFoundException.serializers, + ..._i143.DescribeKinesisStreamingDestinationInput.serializers, + ..._i144.DestinationStatus.serializers, + ..._i145.KinesisDataStreamDestination.serializers, + ..._i146.DescribeKinesisStreamingDestinationOutput.serializers, + ..._i147.DescribeLimitsInput.serializers, + ..._i148.DescribeLimitsOutput.serializers, + ..._i149.DescribeTableInput.serializers, + ..._i150.DescribeTableOutput.serializers, + ..._i151.DescribeTableReplicaAutoScalingInput.serializers, + ..._i152.ReplicaGlobalSecondaryIndexAutoScalingDescription.serializers, + ..._i153.ReplicaAutoScalingDescription.serializers, + ..._i154.TableAutoScalingDescription.serializers, + ..._i155.DescribeTableReplicaAutoScalingOutput.serializers, + ..._i156.DescribeTimeToLiveInput.serializers, + ..._i157.DescribeTimeToLiveOutput.serializers, + ..._i158.KinesisStreamingDestinationInput.serializers, + ..._i159.KinesisStreamingDestinationOutput.serializers, + ..._i160.ExecuteStatementInput.serializers, + ..._i161.ExecuteStatementOutput.serializers, + ..._i162.DuplicateItemException.serializers, + ..._i163.ParameterizedStatement.serializers, + ..._i164.ExecuteTransactionInput.serializers, + ..._i165.ItemResponse.serializers, + ..._i166.ExecuteTransactionOutput.serializers, + ..._i167.IdempotentParameterMismatchException.serializers, + ..._i168.CancellationReason.serializers, + ..._i169.TransactionCanceledException.serializers, + ..._i170.TransactionInProgressException.serializers, + ..._i171.ExportTableToPointInTimeInput.serializers, + ..._i172.ExportTableToPointInTimeOutput.serializers, + ..._i173.ExportConflictException.serializers, + ..._i174.InvalidExportTimeException.serializers, + ..._i175.PointInTimeRecoveryUnavailableException.serializers, + ..._i176.GetItemInput.serializers, + ..._i177.GetItemOutput.serializers, + ..._i178.ImportTableInput.serializers, + ..._i179.ImportTableOutput.serializers, + ..._i180.ImportConflictException.serializers, + ..._i181.BackupTypeFilter.serializers, + ..._i182.ListBackupsInput.serializers, + ..._i183.BackupSummary.serializers, + ..._i184.ListBackupsOutput.serializers, + ..._i185.ListContributorInsightsInput.serializers, + ..._i186.ContributorInsightsSummary.serializers, + ..._i187.ListContributorInsightsOutput.serializers, + ..._i188.ListExportsInput.serializers, + ..._i189.ExportSummary.serializers, + ..._i190.ListExportsOutput.serializers, + ..._i191.ListGlobalTablesInput.serializers, + ..._i192.GlobalTable.serializers, + ..._i193.ListGlobalTablesOutput.serializers, + ..._i194.ListImportsInput.serializers, + ..._i195.ImportSummary.serializers, + ..._i196.ListImportsOutput.serializers, + ..._i197.ListTablesInput.serializers, + ..._i198.ListTablesOutput.serializers, + ..._i199.ListTagsOfResourceInput.serializers, + ..._i200.ListTagsOfResourceOutput.serializers, + ..._i201.PutItemInput.serializers, + ..._i202.PutItemOutput.serializers, + ..._i203.Select.serializers, + ..._i204.Condition.serializers, + ..._i205.QueryInput.serializers, + ..._i206.QueryOutput.serializers, + ..._i207.RestoreTableFromBackupInput.serializers, + ..._i208.RestoreTableFromBackupOutput.serializers, + ..._i209.TableAlreadyExistsException.serializers, + ..._i210.RestoreTableToPointInTimeInput.serializers, + ..._i211.RestoreTableToPointInTimeOutput.serializers, + ..._i212.InvalidRestoreTimeException.serializers, + ..._i213.ScanInput.serializers, + ..._i214.ScanOutput.serializers, + ..._i215.TagResourceInput.serializers, + ..._i216.Get.serializers, + ..._i217.TransactGetItem.serializers, + ..._i218.TransactGetItemsInput.serializers, + ..._i219.TransactGetItemsOutput.serializers, ..._i220.ConditionCheck.serializers, ..._i221.Put.serializers, ..._i222.Delete.serializers, @@ -834,23 +834,23 @@ final Map builderFactories = { ): _i273.ListBuilder<_i2.AttributeValue>.new, const FullType( _i273.BuiltList, - [FullType(_i3.BatchStatementRequest)], - ): _i273.ListBuilder<_i3.BatchStatementRequest>.new, + [FullType(_i4.BatchStatementRequest)], + ): _i273.ListBuilder<_i4.BatchStatementRequest>.new, const FullType( _i273.BuiltMap, [ FullType(String), - FullType(_i9.Capacity), + FullType(_i10.Capacity), ], - ): _i273.MapBuilder.new, + ): _i273.MapBuilder.new, const FullType( _i273.BuiltList, - [FullType(_i8.BatchStatementResponse)], - ): _i273.ListBuilder<_i8.BatchStatementResponse>.new, + [FullType(_i9.BatchStatementResponse)], + ): _i273.ListBuilder<_i9.BatchStatementResponse>.new, const FullType( _i273.BuiltList, - [FullType(_i10.ConsumedCapacity)], - ): _i273.ListBuilder<_i10.ConsumedCapacity>.new, + [FullType(_i11.ConsumedCapacity)], + ): _i273.ListBuilder<_i11.ConsumedCapacity>.new, const FullType( _i273.BuiltList, [ @@ -874,9 +874,9 @@ final Map builderFactories = { _i273.BuiltMap, [ FullType(String), - FullType(_i14.KeysAndAttributes), + FullType(_i15.KeysAndAttributes), ], - ): _i273.MapBuilder.new, + ): _i273.MapBuilder.new, const FullType( _i273.BuiltListMultimap, [ @@ -896,9 +896,9 @@ final Map builderFactories = { _i273.BuiltListMultimap, [ FullType(String), - FullType(_i22.WriteRequest), + FullType(_i23.WriteRequest), ], - ): _i273.ListMultimapBuilder.new, + ): _i273.ListMultimapBuilder.new, const FullType( _i273.BuiltList, [FullType(double)], @@ -907,137 +907,137 @@ final Map builderFactories = { _i273.BuiltListMultimap, [ FullType(String), - FullType(_i25.ItemCollectionMetrics), + FullType(_i26.ItemCollectionMetrics), ], - ): _i273.ListMultimapBuilder.new, + ): _i273.ListMultimapBuilder.new, const FullType( _i273.BuiltList, - [FullType(_i38.Replica)], - ): _i273.ListBuilder<_i38.Replica>.new, + [FullType(_i39.Replica)], + ): _i273.ListBuilder<_i39.Replica>.new, const FullType( _i273.BuiltList, - [FullType(_i42.ReplicaGlobalSecondaryIndexDescription)], - ): _i273.ListBuilder<_i42.ReplicaGlobalSecondaryIndexDescription>.new, + [FullType(_i43.ReplicaGlobalSecondaryIndexDescription)], + ): _i273.ListBuilder<_i43.ReplicaGlobalSecondaryIndexDescription>.new, const FullType( _i273.BuiltList, - [FullType(_i45.ReplicaDescription)], - ): _i273.ListBuilder<_i45.ReplicaDescription>.new, + [FullType(_i46.ReplicaDescription)], + ): _i273.ListBuilder<_i46.ReplicaDescription>.new, const FullType( _i273.BuiltList, - [FullType(_i53.KeySchemaElement)], - ): _i273.ListBuilder<_i53.KeySchemaElement>.new, + [FullType(_i54.KeySchemaElement)], + ): _i273.ListBuilder<_i54.KeySchemaElement>.new, const FullType( _i273.BuiltList, - [FullType(_i51.AttributeDefinition)], - ): _i273.ListBuilder<_i51.AttributeDefinition>.new, + [FullType(_i52.AttributeDefinition)], + ): _i273.ListBuilder<_i52.AttributeDefinition>.new, const FullType( _i273.BuiltList, - [FullType(_i56.LocalSecondaryIndex)], - ): _i273.ListBuilder<_i56.LocalSecondaryIndex>.new, + [FullType(_i57.LocalSecondaryIndex)], + ): _i273.ListBuilder<_i57.LocalSecondaryIndex>.new, const FullType( _i273.BuiltList, - [FullType(_i58.GlobalSecondaryIndex)], - ): _i273.ListBuilder<_i58.GlobalSecondaryIndex>.new, + [FullType(_i59.GlobalSecondaryIndex)], + ): _i273.ListBuilder<_i59.GlobalSecondaryIndex>.new, const FullType( _i273.BuiltList, - [FullType(_i64.Tag)], - ): _i273.ListBuilder<_i64.Tag>.new, + [FullType(_i65.Tag)], + ): _i273.ListBuilder<_i65.Tag>.new, const FullType( _i273.BuiltList, - [FullType(_i69.LocalSecondaryIndexDescription)], - ): _i273.ListBuilder<_i69.LocalSecondaryIndexDescription>.new, + [FullType(_i70.LocalSecondaryIndexDescription)], + ): _i273.ListBuilder<_i70.LocalSecondaryIndexDescription>.new, const FullType( _i273.BuiltList, - [FullType(_i71.GlobalSecondaryIndexDescription)], - ): _i273.ListBuilder<_i71.GlobalSecondaryIndexDescription>.new, + [FullType(_i72.GlobalSecondaryIndexDescription)], + ): _i273.ListBuilder<_i72.GlobalSecondaryIndexDescription>.new, const FullType( _i273.BuiltList, - [FullType(_i81.LocalSecondaryIndexInfo)], - ): _i273.ListBuilder<_i81.LocalSecondaryIndexInfo>.new, + [FullType(_i82.LocalSecondaryIndexInfo)], + ): _i273.ListBuilder<_i82.LocalSecondaryIndexInfo>.new, const FullType( _i273.BuiltList, - [FullType(_i82.GlobalSecondaryIndexInfo)], - ): _i273.ListBuilder<_i82.GlobalSecondaryIndexInfo>.new, + [FullType(_i83.GlobalSecondaryIndexInfo)], + ): _i273.ListBuilder<_i83.GlobalSecondaryIndexInfo>.new, const FullType( _i273.BuiltMap, [ FullType(String), - FullType(_i90.ExpectedAttributeValue), + FullType(_i91.ExpectedAttributeValue), ], - ): _i273.MapBuilder.new, + ): _i273.MapBuilder.new, const FullType( _i273.BuiltList, - [FullType(_i112.Endpoint)], - ): _i273.ListBuilder<_i112.Endpoint>.new, + [FullType(_i113.Endpoint)], + ): _i273.ListBuilder<_i113.Endpoint>.new, const FullType( _i273.BuiltList, - [FullType(_i126.AutoScalingPolicyDescription)], - ): _i273.ListBuilder<_i126.AutoScalingPolicyDescription>.new, + [FullType(_i127.AutoScalingPolicyDescription)], + ): _i273.ListBuilder<_i127.AutoScalingPolicyDescription>.new, const FullType( _i273.BuiltList, - [FullType(_i128.ReplicaGlobalSecondaryIndexSettingsDescription)], - ): _i273.ListBuilder<_i128.ReplicaGlobalSecondaryIndexSettingsDescription> + [FullType(_i129.ReplicaGlobalSecondaryIndexSettingsDescription)], + ): _i273.ListBuilder<_i129.ReplicaGlobalSecondaryIndexSettingsDescription> .new, const FullType( _i273.BuiltList, - [FullType(_i129.ReplicaSettingsDescription)], - ): _i273.ListBuilder<_i129.ReplicaSettingsDescription>.new, + [FullType(_i130.ReplicaSettingsDescription)], + ): _i273.ListBuilder<_i130.ReplicaSettingsDescription>.new, const FullType( _i273.BuiltList, - [FullType(_i144.KinesisDataStreamDestination)], - ): _i273.ListBuilder<_i144.KinesisDataStreamDestination>.new, + [FullType(_i145.KinesisDataStreamDestination)], + ): _i273.ListBuilder<_i145.KinesisDataStreamDestination>.new, const FullType( _i273.BuiltList, - [FullType(_i151.ReplicaGlobalSecondaryIndexAutoScalingDescription)], - ): _i273.ListBuilder<_i151.ReplicaGlobalSecondaryIndexAutoScalingDescription> + [FullType(_i152.ReplicaGlobalSecondaryIndexAutoScalingDescription)], + ): _i273.ListBuilder<_i152.ReplicaGlobalSecondaryIndexAutoScalingDescription> .new, const FullType( _i273.BuiltList, - [FullType(_i152.ReplicaAutoScalingDescription)], - ): _i273.ListBuilder<_i152.ReplicaAutoScalingDescription>.new, + [FullType(_i153.ReplicaAutoScalingDescription)], + ): _i273.ListBuilder<_i153.ReplicaAutoScalingDescription>.new, const FullType( _i273.BuiltList, - [FullType(_i162.ParameterizedStatement)], - ): _i273.ListBuilder<_i162.ParameterizedStatement>.new, + [FullType(_i163.ParameterizedStatement)], + ): _i273.ListBuilder<_i163.ParameterizedStatement>.new, const FullType( _i273.BuiltList, - [FullType(_i164.ItemResponse)], - ): _i273.ListBuilder<_i164.ItemResponse>.new, + [FullType(_i165.ItemResponse)], + ): _i273.ListBuilder<_i165.ItemResponse>.new, const FullType( _i273.BuiltList, - [FullType(_i167.CancellationReason)], - ): _i273.ListBuilder<_i167.CancellationReason>.new, + [FullType(_i168.CancellationReason)], + ): _i273.ListBuilder<_i168.CancellationReason>.new, const FullType( _i273.BuiltList, - [FullType(_i182.BackupSummary)], - ): _i273.ListBuilder<_i182.BackupSummary>.new, + [FullType(_i183.BackupSummary)], + ): _i273.ListBuilder<_i183.BackupSummary>.new, const FullType( _i273.BuiltList, - [FullType(_i185.ContributorInsightsSummary)], - ): _i273.ListBuilder<_i185.ContributorInsightsSummary>.new, + [FullType(_i186.ContributorInsightsSummary)], + ): _i273.ListBuilder<_i186.ContributorInsightsSummary>.new, const FullType( _i273.BuiltList, - [FullType(_i188.ExportSummary)], - ): _i273.ListBuilder<_i188.ExportSummary>.new, + [FullType(_i189.ExportSummary)], + ): _i273.ListBuilder<_i189.ExportSummary>.new, const FullType( _i273.BuiltList, - [FullType(_i191.GlobalTable)], - ): _i273.ListBuilder<_i191.GlobalTable>.new, + [FullType(_i192.GlobalTable)], + ): _i273.ListBuilder<_i192.GlobalTable>.new, const FullType( _i273.BuiltList, - [FullType(_i194.ImportSummary)], - ): _i273.ListBuilder<_i194.ImportSummary>.new, + [FullType(_i195.ImportSummary)], + ): _i273.ListBuilder<_i195.ImportSummary>.new, const FullType( _i273.BuiltMap, [ FullType(String), - FullType(_i203.Condition), + FullType(_i204.Condition), ], - ): _i273.MapBuilder.new, + ): _i273.MapBuilder.new, const FullType( _i273.BuiltList, - [FullType(_i216.TransactGetItem)], - ): _i273.ListBuilder<_i216.TransactGetItem>.new, + [FullType(_i217.TransactGetItem)], + ): _i273.ListBuilder<_i217.TransactGetItem>.new, const FullType( _i273.BuiltList, [FullType(_i224.TransactWriteItem)], diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/attribute_value.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/attribute_value.dart index 4f22606438..57b74d17e8 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/attribute_value.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/attribute_value.dart @@ -18,30 +18,30 @@ import 'package:smithy/smithy.dart' as _i1; sealed class AttributeValue extends _i1.SmithyUnion { const AttributeValue._(); - const factory AttributeValue.s(String s) = AttributeValueS; + const factory AttributeValue.s(String s) = AttributeValueS$; - const factory AttributeValue.n(String n) = AttributeValueN; + const factory AttributeValue.n(String n) = AttributeValueN$; - const factory AttributeValue.b(_i2.Uint8List b) = AttributeValueB; + const factory AttributeValue.b(_i2.Uint8List b) = AttributeValueB$; - factory AttributeValue.ss(List ss) = AttributeValueSs; + factory AttributeValue.ss(List ss) = AttributeValueSs$; - factory AttributeValue.ns(List ns) = AttributeValueNs; + factory AttributeValue.ns(List ns) = AttributeValueNs$; - factory AttributeValue.bs(List<_i2.Uint8List> bs) = AttributeValueBs; + factory AttributeValue.bs(List<_i2.Uint8List> bs) = AttributeValueBs$; - factory AttributeValue.m(Map m) = AttributeValueM; + factory AttributeValue.m(Map m) = AttributeValueM$; - factory AttributeValue.l(List l) = AttributeValueL; + factory AttributeValue.l(List l) = AttributeValueL$; - const factory AttributeValue.null$(bool null$) = AttributeValueNull; + const factory AttributeValue.null$(bool null$) = AttributeValueNull$; - const factory AttributeValue.bool$(bool bool$) = AttributeValueBool; + const factory AttributeValue.bool$(bool bool$) = AttributeValueBool$; const factory AttributeValue.sdkUnknown( String name, Object value, - ) = AttributeValueSdkUnknown; + ) = AttributeValueSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ AttributeValueAwsJson10Serializer() @@ -170,8 +170,8 @@ sealed class AttributeValue extends _i1.SmithyUnion { } } -final class AttributeValueS extends AttributeValue { - const AttributeValueS(this.s) : super._(); +final class AttributeValueS$ extends AttributeValue { + const AttributeValueS$(this.s) : super._(); @override final String s; @@ -180,8 +180,8 @@ final class AttributeValueS extends AttributeValue { String get name => 'S'; } -final class AttributeValueN extends AttributeValue { - const AttributeValueN(this.n) : super._(); +final class AttributeValueN$ extends AttributeValue { + const AttributeValueN$(this.n) : super._(); @override final String n; @@ -190,8 +190,8 @@ final class AttributeValueN extends AttributeValue { String get name => 'N'; } -final class AttributeValueB extends AttributeValue { - const AttributeValueB(this.b) : super._(); +final class AttributeValueB$ extends AttributeValue { + const AttributeValueB$(this.b) : super._(); @override final _i2.Uint8List b; @@ -200,10 +200,10 @@ final class AttributeValueB extends AttributeValue { String get name => 'B'; } -final class AttributeValueSs extends AttributeValue { - AttributeValueSs(List ss) : this._(_i3.BuiltList(ss)); +final class AttributeValueSs$ extends AttributeValue { + AttributeValueSs$(List ss) : this._(_i3.BuiltList(ss)); - const AttributeValueSs._(this.ss) : super._(); + const AttributeValueSs$._(this.ss) : super._(); @override final _i3.BuiltList ss; @@ -212,10 +212,10 @@ final class AttributeValueSs extends AttributeValue { String get name => 'SS'; } -final class AttributeValueNs extends AttributeValue { - AttributeValueNs(List ns) : this._(_i3.BuiltList(ns)); +final class AttributeValueNs$ extends AttributeValue { + AttributeValueNs$(List ns) : this._(_i3.BuiltList(ns)); - const AttributeValueNs._(this.ns) : super._(); + const AttributeValueNs$._(this.ns) : super._(); @override final _i3.BuiltList ns; @@ -224,10 +224,10 @@ final class AttributeValueNs extends AttributeValue { String get name => 'NS'; } -final class AttributeValueBs extends AttributeValue { - AttributeValueBs(List<_i2.Uint8List> bs) : this._(_i3.BuiltList(bs)); +final class AttributeValueBs$ extends AttributeValue { + AttributeValueBs$(List<_i2.Uint8List> bs) : this._(_i3.BuiltList(bs)); - const AttributeValueBs._(this.bs) : super._(); + const AttributeValueBs$._(this.bs) : super._(); @override final _i3.BuiltList<_i2.Uint8List> bs; @@ -236,10 +236,10 @@ final class AttributeValueBs extends AttributeValue { String get name => 'BS'; } -final class AttributeValueM extends AttributeValue { - AttributeValueM(Map m) : this._(_i3.BuiltMap(m)); +final class AttributeValueM$ extends AttributeValue { + AttributeValueM$(Map m) : this._(_i3.BuiltMap(m)); - const AttributeValueM._(this.m) : super._(); + const AttributeValueM$._(this.m) : super._(); @override final _i3.BuiltMap m; @@ -248,10 +248,10 @@ final class AttributeValueM extends AttributeValue { String get name => 'M'; } -final class AttributeValueL extends AttributeValue { - AttributeValueL(List l) : this._(_i3.BuiltList(l)); +final class AttributeValueL$ extends AttributeValue { + AttributeValueL$(List l) : this._(_i3.BuiltList(l)); - const AttributeValueL._(this.l) : super._(); + const AttributeValueL$._(this.l) : super._(); @override final _i3.BuiltList l; @@ -260,8 +260,8 @@ final class AttributeValueL extends AttributeValue { String get name => 'L'; } -final class AttributeValueNull extends AttributeValue { - const AttributeValueNull(this.null$) : super._(); +final class AttributeValueNull$ extends AttributeValue { + const AttributeValueNull$(this.null$) : super._(); @override final bool null$; @@ -270,8 +270,8 @@ final class AttributeValueNull extends AttributeValue { String get name => 'NULL'; } -final class AttributeValueBool extends AttributeValue { - const AttributeValueBool(this.bool$) : super._(); +final class AttributeValueBool$ extends AttributeValue { + const AttributeValueBool$(this.bool$) : super._(); @override final bool bool$; @@ -280,8 +280,8 @@ final class AttributeValueBool extends AttributeValue { String get name => 'BOOL'; } -final class AttributeValueSdkUnknown extends AttributeValue { - const AttributeValueSdkUnknown( +final class AttributeValueSdkUnknown$ extends AttributeValue { + const AttributeValueSdkUnknown$( this.name, this.value, ) : super._(); @@ -300,16 +300,16 @@ class AttributeValueAwsJson10Serializer @override Iterable get types => const [ AttributeValue, - AttributeValueS, - AttributeValueN, - AttributeValueB, - AttributeValueSs, - AttributeValueNs, - AttributeValueBs, - AttributeValueM, - AttributeValueL, - AttributeValueNull, - AttributeValueBool, + AttributeValueS$, + AttributeValueN$, + AttributeValueB$, + AttributeValueSs$, + AttributeValueNs$, + AttributeValueBs$, + AttributeValueM$, + AttributeValueL$, + AttributeValueNull$, + AttributeValueBool$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -327,22 +327,22 @@ class AttributeValueAwsJson10Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'S': - return AttributeValueS((serializers.deserialize( + return AttributeValueS$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'N': - return AttributeValueN((serializers.deserialize( + return AttributeValueN$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'B': - return AttributeValueB((serializers.deserialize( + return AttributeValueB$((serializers.deserialize( value, specifiedType: const FullType(_i2.Uint8List), ) as _i2.Uint8List)); case 'SS': - return AttributeValueSs._((serializers.deserialize( + return AttributeValueSs$._((serializers.deserialize( value, specifiedType: const FullType( _i3.BuiltList, @@ -350,7 +350,7 @@ class AttributeValueAwsJson10Serializer ), ) as _i3.BuiltList)); case 'NS': - return AttributeValueNs._((serializers.deserialize( + return AttributeValueNs$._((serializers.deserialize( value, specifiedType: const FullType( _i3.BuiltList, @@ -358,7 +358,7 @@ class AttributeValueAwsJson10Serializer ), ) as _i3.BuiltList)); case 'BS': - return AttributeValueBs._((serializers.deserialize( + return AttributeValueBs$._((serializers.deserialize( value, specifiedType: const FullType( _i3.BuiltList, @@ -366,7 +366,7 @@ class AttributeValueAwsJson10Serializer ), ) as _i3.BuiltList<_i2.Uint8List>)); case 'M': - return AttributeValueM._((serializers.deserialize( + return AttributeValueM$._((serializers.deserialize( value, specifiedType: const FullType( _i3.BuiltMap, @@ -377,7 +377,7 @@ class AttributeValueAwsJson10Serializer ), ) as _i3.BuiltMap)); case 'L': - return AttributeValueL._((serializers.deserialize( + return AttributeValueL$._((serializers.deserialize( value, specifiedType: const FullType( _i3.BuiltList, @@ -385,12 +385,12 @@ class AttributeValueAwsJson10Serializer ), ) as _i3.BuiltList)); case 'NULL': - return AttributeValueNull((serializers.deserialize( + return AttributeValueNull$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); case 'BOOL': - return AttributeValueBool((serializers.deserialize( + return AttributeValueBool$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); @@ -410,40 +410,40 @@ class AttributeValueAwsJson10Serializer return [ object.name, switch (object) { - AttributeValueS(:final value) => serializers.serialize( + AttributeValueS$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - AttributeValueN(:final value) => serializers.serialize( + AttributeValueN$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - AttributeValueB(:final value) => serializers.serialize( + AttributeValueB$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Uint8List), ), - AttributeValueSs(:final value) => serializers.serialize( + AttributeValueSs$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i3.BuiltList, [FullType(String)], ), ), - AttributeValueNs(:final value) => serializers.serialize( + AttributeValueNs$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i3.BuiltList, [FullType(String)], ), ), - AttributeValueBs(:final value) => serializers.serialize( + AttributeValueBs$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i3.BuiltList, [FullType(_i2.Uint8List)], ), ), - AttributeValueM(:final value) => serializers.serialize( + AttributeValueM$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i3.BuiltMap, @@ -453,22 +453,22 @@ class AttributeValueAwsJson10Serializer ], ), ), - AttributeValueL(:final value) => serializers.serialize( + AttributeValueL$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i3.BuiltList, [FullType(AttributeValue)], ), ), - AttributeValueNull(:final value) => serializers.serialize( + AttributeValueNull$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - AttributeValueBool(:final value) => serializers.serialize( + AttributeValueBool$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - AttributeValueSdkUnknown(:final value) => value, + AttributeValueSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_error.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_error.dart index d388a5084c..737a8bfc25 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_error.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_error.dart @@ -4,9 +4,12 @@ library smoke_test.dynamo_db.model.batch_statement_error; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i1; +import 'package:built_collection/built_collection.dart' as _i4; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:smithy/smithy.dart' as _i3; +import 'package:smithy/smithy.dart' as _i5; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/attribute_value.dart' + as _i3; import 'package:smoke_test/src/sdk/src/dynamo_db/model/batch_statement_error_code_enum.dart' as _i2; @@ -20,10 +23,12 @@ abstract class BatchStatementError factory BatchStatementError({ _i2.BatchStatementErrorCodeEnum? code, String? message, + Map? item, }) { return _$BatchStatementError._( code: code, message: message, + item: item == null ? null : _i4.BuiltMap(item), ); } @@ -34,7 +39,7 @@ abstract class BatchStatementError const BatchStatementError._(); - static const List<_i3.SmithySerializer> serializers = [ + static const List<_i5.SmithySerializer> serializers = [ BatchStatementErrorAwsJson10Serializer() ]; @@ -46,10 +51,14 @@ abstract class BatchStatementError /// The error message associated with the PartiQL batch response. String? get message; + + /// The item which caused the condition check to fail. This will be set if ReturnValuesOnConditionCheckFailure is specified as `ALL_OLD`. + _i4.BuiltMap? get item; @override List get props => [ code, message, + item, ]; @override String toString() { @@ -61,13 +70,17 @@ abstract class BatchStatementError ..add( 'message', message, + ) + ..add( + 'item', + item, ); return helper.toString(); } } class BatchStatementErrorAwsJson10Serializer - extends _i3.StructuredSmithySerializer { + extends _i5.StructuredSmithySerializer { const BatchStatementErrorAwsJson10Serializer() : super('BatchStatementError'); @override @@ -76,8 +89,8 @@ class BatchStatementErrorAwsJson10Serializer _$BatchStatementError, ]; @override - Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( + Iterable<_i5.ShapeId> get supportedProtocols => const [ + _i5.ShapeId( namespace: 'aws.protocols', shape: 'awsJson1_0', ) @@ -108,6 +121,17 @@ class BatchStatementErrorAwsJson10Serializer value, specifiedType: const FullType(String), ) as String); + case 'Item': + result.item.replace((serializers.deserialize( + value, + specifiedType: const FullType( + _i4.BuiltMap, + [ + FullType(String), + FullType(_i3.AttributeValue), + ], + ), + ) as _i4.BuiltMap)); } } @@ -121,7 +145,7 @@ class BatchStatementErrorAwsJson10Serializer FullType specifiedType = FullType.unspecified, }) { final result$ = []; - final BatchStatementError(:code, :message) = object; + final BatchStatementError(:code, :message, :item) = object; if (code != null) { result$ ..add('Code') @@ -138,6 +162,20 @@ class BatchStatementErrorAwsJson10Serializer specifiedType: const FullType(String), )); } + if (item != null) { + result$ + ..add('Item') + ..add(serializers.serialize( + item, + specifiedType: const FullType( + _i4.BuiltMap, + [ + FullType(String), + FullType(_i3.AttributeValue), + ], + ), + )); + } return result$; } } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_error.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_error.g.dart index 86be9c1855..8f6ff69591 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_error.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_error.g.dart @@ -11,12 +11,14 @@ class _$BatchStatementError extends BatchStatementError { final _i2.BatchStatementErrorCodeEnum? code; @override final String? message; + @override + final _i4.BuiltMap? item; factory _$BatchStatementError( [void Function(BatchStatementErrorBuilder)? updates]) => (new BatchStatementErrorBuilder()..update(updates))._build(); - _$BatchStatementError._({this.code, this.message}) : super._(); + _$BatchStatementError._({this.code, this.message, this.item}) : super._(); @override BatchStatementError rebuild( @@ -32,7 +34,8 @@ class _$BatchStatementError extends BatchStatementError { if (identical(other, this)) return true; return other is BatchStatementError && code == other.code && - message == other.message; + message == other.message && + item == other.item; } @override @@ -40,6 +43,7 @@ class _$BatchStatementError extends BatchStatementError { var _$hash = 0; _$hash = $jc(_$hash, code.hashCode); _$hash = $jc(_$hash, message.hashCode); + _$hash = $jc(_$hash, item.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -57,6 +61,12 @@ class BatchStatementErrorBuilder String? get message => _$this._message; set message(String? message) => _$this._message = message; + _i4.MapBuilder? _item; + _i4.MapBuilder get item => + _$this._item ??= new _i4.MapBuilder(); + set item(_i4.MapBuilder? item) => + _$this._item = item; + BatchStatementErrorBuilder() { BatchStatementError._init(this); } @@ -66,6 +76,7 @@ class BatchStatementErrorBuilder if ($v != null) { _code = $v.code; _message = $v.message; + _item = $v.item?.toBuilder(); _$v = null; } return this; @@ -86,8 +97,22 @@ class BatchStatementErrorBuilder BatchStatementError build() => _build(); _$BatchStatementError _build() { - final _$result = - _$v ?? new _$BatchStatementError._(code: code, message: message); + _$BatchStatementError _$result; + try { + _$result = _$v ?? + new _$BatchStatementError._( + code: code, message: message, item: _item?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'item'; + _item?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'BatchStatementError', _$failedField, e.toString()); + } + rethrow; + } replace(_$result); return _$result; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_request.dart index 06a05b642c..2349319fdf 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_request.dart @@ -4,12 +4,14 @@ library smoke_test.dynamo_db.model.batch_statement_request; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i1; -import 'package:built_collection/built_collection.dart' as _i3; +import 'package:built_collection/built_collection.dart' as _i4; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:smithy/smithy.dart' as _i4; +import 'package:smithy/smithy.dart' as _i5; import 'package:smoke_test/src/sdk/src/dynamo_db/model/attribute_value.dart' as _i2; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_values_on_condition_check_failure.dart' + as _i3; part 'batch_statement_request.g.dart'; @@ -22,11 +24,14 @@ abstract class BatchStatementRequest required String statement, List<_i2.AttributeValue>? parameters, bool? consistentRead, + _i3.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure, }) { return _$BatchStatementRequest._( statement: statement, - parameters: parameters == null ? null : _i3.BuiltList(parameters), + parameters: parameters == null ? null : _i4.BuiltList(parameters), consistentRead: consistentRead, + returnValuesOnConditionCheckFailure: returnValuesOnConditionCheckFailure, ); } @@ -37,7 +42,7 @@ abstract class BatchStatementRequest const BatchStatementRequest._(); - static const List<_i4.SmithySerializer> serializers = [ + static const List<_i5.SmithySerializer> serializers = [ BatchStatementRequestAwsJson10Serializer() ]; @@ -48,15 +53,22 @@ abstract class BatchStatementRequest String get statement; /// The parameters associated with a PartiQL statement in the batch request. - _i3.BuiltList<_i2.AttributeValue>? get parameters; + _i4.BuiltList<_i2.AttributeValue>? get parameters; /// The read consistency of the PartiQL batch request. bool? get consistentRead; + + /// An optional parameter that returns the item attributes for a PartiQL batch request operation that failed a condition check. + /// + /// There is no 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. + _i3.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure; @override List get props => [ statement, parameters, consistentRead, + returnValuesOnConditionCheckFailure, ]; @override String toString() { @@ -72,13 +84,17 @@ abstract class BatchStatementRequest ..add( 'consistentRead', consistentRead, + ) + ..add( + 'returnValuesOnConditionCheckFailure', + returnValuesOnConditionCheckFailure, ); return helper.toString(); } } class BatchStatementRequestAwsJson10Serializer - extends _i4.StructuredSmithySerializer { + extends _i5.StructuredSmithySerializer { const BatchStatementRequestAwsJson10Serializer() : super('BatchStatementRequest'); @@ -88,8 +104,8 @@ class BatchStatementRequestAwsJson10Serializer _$BatchStatementRequest, ]; @override - Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( + Iterable<_i5.ShapeId> get supportedProtocols => const [ + _i5.ShapeId( namespace: 'aws.protocols', shape: 'awsJson1_0', ) @@ -119,15 +135,21 @@ class BatchStatementRequestAwsJson10Serializer result.parameters.replace((serializers.deserialize( value, specifiedType: const FullType( - _i3.BuiltList, + _i4.BuiltList, [FullType(_i2.AttributeValue)], ), - ) as _i3.BuiltList<_i2.AttributeValue>)); + ) as _i4.BuiltList<_i2.AttributeValue>)); case 'ConsistentRead': result.consistentRead = (serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool); + case 'ReturnValuesOnConditionCheckFailure': + result.returnValuesOnConditionCheckFailure = (serializers.deserialize( + value, + specifiedType: + const FullType(_i3.ReturnValuesOnConditionCheckFailure), + ) as _i3.ReturnValuesOnConditionCheckFailure); } } @@ -141,8 +163,12 @@ class BatchStatementRequestAwsJson10Serializer FullType specifiedType = FullType.unspecified, }) { final result$ = []; - final BatchStatementRequest(:statement, :parameters, :consistentRead) = - object; + final BatchStatementRequest( + :statement, + :parameters, + :consistentRead, + :returnValuesOnConditionCheckFailure + ) = object; result$.addAll([ 'Statement', serializers.serialize( @@ -156,7 +182,7 @@ class BatchStatementRequestAwsJson10Serializer ..add(serializers.serialize( parameters, specifiedType: const FullType( - _i3.BuiltList, + _i4.BuiltList, [FullType(_i2.AttributeValue)], ), )); @@ -169,6 +195,15 @@ class BatchStatementRequestAwsJson10Serializer specifiedType: const FullType(bool), )); } + if (returnValuesOnConditionCheckFailure != null) { + result$ + ..add('ReturnValuesOnConditionCheckFailure') + ..add(serializers.serialize( + returnValuesOnConditionCheckFailure, + specifiedType: + const FullType(_i3.ReturnValuesOnConditionCheckFailure), + )); + } return result$; } } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_request.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_request.g.dart index 60e0c4e283..2a0cf9d143 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_request.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/batch_statement_request.g.dart @@ -10,16 +10,22 @@ class _$BatchStatementRequest extends BatchStatementRequest { @override final String statement; @override - final _i3.BuiltList<_i2.AttributeValue>? parameters; + final _i4.BuiltList<_i2.AttributeValue>? parameters; @override final bool? consistentRead; + @override + final _i3.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure; factory _$BatchStatementRequest( [void Function(BatchStatementRequestBuilder)? updates]) => (new BatchStatementRequestBuilder()..update(updates))._build(); _$BatchStatementRequest._( - {required this.statement, this.parameters, this.consistentRead}) + {required this.statement, + this.parameters, + this.consistentRead, + this.returnValuesOnConditionCheckFailure}) : super._() { BuiltValueNullFieldError.checkNotNull( statement, r'BatchStatementRequest', 'statement'); @@ -40,7 +46,9 @@ class _$BatchStatementRequest extends BatchStatementRequest { return other is BatchStatementRequest && statement == other.statement && parameters == other.parameters && - consistentRead == other.consistentRead; + consistentRead == other.consistentRead && + returnValuesOnConditionCheckFailure == + other.returnValuesOnConditionCheckFailure; } @override @@ -49,6 +57,7 @@ class _$BatchStatementRequest extends BatchStatementRequest { _$hash = $jc(_$hash, statement.hashCode); _$hash = $jc(_$hash, parameters.hashCode); _$hash = $jc(_$hash, consistentRead.hashCode); + _$hash = $jc(_$hash, returnValuesOnConditionCheckFailure.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -62,10 +71,10 @@ class BatchStatementRequestBuilder String? get statement => _$this._statement; set statement(String? statement) => _$this._statement = statement; - _i3.ListBuilder<_i2.AttributeValue>? _parameters; - _i3.ListBuilder<_i2.AttributeValue> get parameters => - _$this._parameters ??= new _i3.ListBuilder<_i2.AttributeValue>(); - set parameters(_i3.ListBuilder<_i2.AttributeValue>? parameters) => + _i4.ListBuilder<_i2.AttributeValue>? _parameters; + _i4.ListBuilder<_i2.AttributeValue> get parameters => + _$this._parameters ??= new _i4.ListBuilder<_i2.AttributeValue>(); + set parameters(_i4.ListBuilder<_i2.AttributeValue>? parameters) => _$this._parameters = parameters; bool? _consistentRead; @@ -73,6 +82,16 @@ class BatchStatementRequestBuilder set consistentRead(bool? consistentRead) => _$this._consistentRead = consistentRead; + _i3.ReturnValuesOnConditionCheckFailure? _returnValuesOnConditionCheckFailure; + _i3.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure => + _$this._returnValuesOnConditionCheckFailure; + set returnValuesOnConditionCheckFailure( + _i3.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure) => + _$this._returnValuesOnConditionCheckFailure = + returnValuesOnConditionCheckFailure; + BatchStatementRequestBuilder() { BatchStatementRequest._init(this); } @@ -83,6 +102,8 @@ class BatchStatementRequestBuilder _statement = $v.statement; _parameters = $v.parameters?.toBuilder(); _consistentRead = $v.consistentRead; + _returnValuesOnConditionCheckFailure = + $v.returnValuesOnConditionCheckFailure; _$v = null; } return this; @@ -110,7 +131,9 @@ class BatchStatementRequestBuilder statement: BuiltValueNullFieldError.checkNotNull( statement, r'BatchStatementRequest', 'statement'), parameters: _parameters?.build(), - consistentRead: consistentRead); + consistentRead: consistentRead, + returnValuesOnConditionCheckFailure: + returnValuesOnConditionCheckFailure); } catch (_) { late String _$failedField; try { diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/conditional_check_failed_exception.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/conditional_check_failed_exception.dart index cf416796b8..63ab409298 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/conditional_check_failed_exception.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/conditional_check_failed_exception.dart @@ -4,9 +4,12 @@ library smoke_test.dynamo_db.model.conditional_check_failed_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i1; +import 'package:built_collection/built_collection.dart' as _i4; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:smithy/smithy.dart' as _i2; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/attribute_value.dart' + as _i3; part 'conditional_check_failed_exception.g.dart'; @@ -19,8 +22,14 @@ abstract class ConditionalCheckFailedException ConditionalCheckFailedExceptionBuilder>, _i2.SmithyHttpException { /// A condition specified in the operation could not be evaluated. - factory ConditionalCheckFailedException({String? message}) { - return _$ConditionalCheckFailedException._(message: message); + factory ConditionalCheckFailedException({ + String? message, + Map? item, + }) { + return _$ConditionalCheckFailedException._( + message: message, + item: item == null ? null : _i4.BuiltMap(item), + ); } /// A condition specified in the operation could not be evaluated. @@ -49,6 +58,9 @@ abstract class ConditionalCheckFailedException /// The conditional request failed. @override String? get message; + + /// Item which caused the `ConditionalCheckFailedException`. + _i4.BuiltMap? get item; @override _i2.ShapeId get shapeId => const _i2.ShapeId( namespace: 'com.amazonaws.dynamodb', @@ -65,7 +77,10 @@ abstract class ConditionalCheckFailedException @override Exception? get underlyingException => null; @override - List get props => [message]; + List get props => [ + message, + item, + ]; @override String toString() { final helper = @@ -73,6 +88,10 @@ abstract class ConditionalCheckFailedException ..add( 'message', message, + ) + ..add( + 'item', + item, ); return helper.toString(); } @@ -116,6 +135,17 @@ class ConditionalCheckFailedExceptionAwsJson10Serializer value, specifiedType: const FullType(String), ) as String); + case 'Item': + result.item.replace((serializers.deserialize( + value, + specifiedType: const FullType( + _i4.BuiltMap, + [ + FullType(String), + FullType(_i3.AttributeValue), + ], + ), + ) as _i4.BuiltMap)); } } @@ -129,7 +159,7 @@ class ConditionalCheckFailedExceptionAwsJson10Serializer FullType specifiedType = FullType.unspecified, }) { final result$ = []; - final ConditionalCheckFailedException(:message) = object; + final ConditionalCheckFailedException(:message, :item) = object; if (message != null) { result$ ..add('message') @@ -138,6 +168,20 @@ class ConditionalCheckFailedExceptionAwsJson10Serializer specifiedType: const FullType(String), )); } + if (item != null) { + result$ + ..add('Item') + ..add(serializers.serialize( + item, + specifiedType: const FullType( + _i4.BuiltMap, + [ + FullType(String), + FullType(_i3.AttributeValue), + ], + ), + )); + } return result$; } } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/conditional_check_failed_exception.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/conditional_check_failed_exception.g.dart index 844aa1b399..01f4af9060 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/conditional_check_failed_exception.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/conditional_check_failed_exception.g.dart @@ -11,6 +11,8 @@ class _$ConditionalCheckFailedException @override final String? message; @override + final _i4.BuiltMap? item; + @override final int? statusCode; @override final Map? headers; @@ -20,7 +22,7 @@ class _$ConditionalCheckFailedException (new ConditionalCheckFailedExceptionBuilder()..update(updates))._build(); _$ConditionalCheckFailedException._( - {this.message, this.statusCode, this.headers}) + {this.message, this.item, this.statusCode, this.headers}) : super._(); @override @@ -35,13 +37,16 @@ class _$ConditionalCheckFailedException @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is ConditionalCheckFailedException && message == other.message; + return other is ConditionalCheckFailedException && + message == other.message && + item == other.item; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, message.hashCode); + _$hash = $jc(_$hash, item.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -57,6 +62,12 @@ class ConditionalCheckFailedExceptionBuilder String? get message => _$this._message; set message(String? message) => _$this._message = message; + _i4.MapBuilder? _item; + _i4.MapBuilder get item => + _$this._item ??= new _i4.MapBuilder(); + set item(_i4.MapBuilder? item) => + _$this._item = item; + int? _statusCode; int? get statusCode => _$this._statusCode; set statusCode(int? statusCode) => _$this._statusCode = statusCode; @@ -73,6 +84,7 @@ class ConditionalCheckFailedExceptionBuilder final $v = _$v; if ($v != null) { _message = $v.message; + _item = $v.item?.toBuilder(); _statusCode = $v.statusCode; _headers = $v.headers; _$v = null; @@ -95,9 +107,25 @@ class ConditionalCheckFailedExceptionBuilder ConditionalCheckFailedException build() => _build(); _$ConditionalCheckFailedException _build() { - final _$result = _$v ?? - new _$ConditionalCheckFailedException._( - message: message, statusCode: statusCode, headers: headers); + _$ConditionalCheckFailedException _$result; + try { + _$result = _$v ?? + new _$ConditionalCheckFailedException._( + message: message, + item: _item?.build(), + statusCode: statusCode, + headers: headers); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'item'; + _item?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ConditionalCheckFailedException', _$failedField, e.toString()); + } + rethrow; + } replace(_$result); return _$result; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/delete_item_input.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/delete_item_input.dart index d405724cae..77cb67e160 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/delete_item_input.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/delete_item_input.dart @@ -4,7 +4,7 @@ library smoke_test.dynamo_db.model.delete_item_input; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i2; -import 'package:built_collection/built_collection.dart' as _i9; +import 'package:built_collection/built_collection.dart' as _i10; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:smithy/smithy.dart' as _i1; @@ -20,6 +20,8 @@ import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_item_collection_me as _i8; import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_value.dart' as _i6; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_values_on_condition_check_failure.dart' + as _i9; part 'delete_item_input.g.dart'; @@ -39,11 +41,13 @@ abstract class DeleteItemInput String? conditionExpression, Map? expressionAttributeNames, Map? expressionAttributeValues, + _i9.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure, }) { return _$DeleteItemInput._( tableName: tableName, - key: _i9.BuiltMap(key), - expected: expected == null ? null : _i9.BuiltMap(expected), + key: _i10.BuiltMap(key), + expected: expected == null ? null : _i10.BuiltMap(expected), conditionalOperator: conditionalOperator, returnValues: returnValues, returnConsumedCapacity: returnConsumedCapacity, @@ -51,10 +55,11 @@ abstract class DeleteItemInput conditionExpression: conditionExpression, expressionAttributeNames: expressionAttributeNames == null ? null - : _i9.BuiltMap(expressionAttributeNames), + : _i10.BuiltMap(expressionAttributeNames), expressionAttributeValues: expressionAttributeValues == null ? null - : _i9.BuiltMap(expressionAttributeValues), + : _i10.BuiltMap(expressionAttributeValues), + returnValuesOnConditionCheckFailure: returnValuesOnConditionCheckFailure, ); } @@ -84,10 +89,10 @@ abstract class DeleteItemInput /// A map of attribute names to `AttributeValue` objects, representing the primary key of the item to delete. /// /// For the primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key. - _i9.BuiltMap get key; + _i10.BuiltMap get key; /// This is a legacy parameter. Use `ConditionExpression` instead. For more information, see [Expected](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) in the _Amazon DynamoDB Developer Guide_. - _i9.BuiltMap? get expected; + _i10.BuiltMap? get expected; /// This is a legacy parameter. Use `ConditionExpression` instead. For more information, see [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) in the _Amazon DynamoDB Developer Guide_. _i5.ConditionalOperator? get conditionalOperator; @@ -161,7 +166,7 @@ abstract class DeleteItemInput /// Tokens that begin with the **:** character are _expression attribute values_, which are placeholders for the actual value at runtime. /// /// For more information on expression attribute names, see [Specifying Item Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) in the _Amazon DynamoDB Developer Guide_. - _i9.BuiltMap? get expressionAttributeNames; + _i10.BuiltMap? get expressionAttributeNames; /// One or more values that can be substituted in an expression. /// @@ -178,7 +183,13 @@ abstract class DeleteItemInput /// `ProductStatus IN (:avail, :back, :disc)` /// /// For more information on expression attribute values, see [Condition Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) in the _Amazon DynamoDB Developer Guide_. - _i9.BuiltMap? get expressionAttributeValues; + _i10.BuiltMap? get expressionAttributeValues; + + /// An optional parameter that returns the item attributes for a `DeleteItem` operation that failed a condition check. + /// + /// There is no 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. + _i9.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure; @override DeleteItemInput getPayload() => this; @override @@ -193,6 +204,7 @@ abstract class DeleteItemInput conditionExpression, expressionAttributeNames, expressionAttributeValues, + returnValuesOnConditionCheckFailure, ]; @override String toString() { @@ -236,6 +248,10 @@ abstract class DeleteItemInput ..add( 'expressionAttributeValues', expressionAttributeValues, + ) + ..add( + 'returnValuesOnConditionCheckFailure', + returnValuesOnConditionCheckFailure, ); return helper.toString(); } @@ -282,24 +298,24 @@ class DeleteItemInputAwsJson10Serializer result.key.replace((serializers.deserialize( value, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), ], ), - ) as _i9.BuiltMap)); + ) as _i10.BuiltMap)); case 'Expected': result.expected.replace((serializers.deserialize( value, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i4.ExpectedAttributeValue), ], ), - ) as _i9.BuiltMap)); + ) as _i10.BuiltMap)); case 'ConditionalOperator': result.conditionalOperator = (serializers.deserialize( value, @@ -329,24 +345,30 @@ class DeleteItemInputAwsJson10Serializer result.expressionAttributeNames.replace((serializers.deserialize( value, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(String), ], ), - ) as _i9.BuiltMap)); + ) as _i10.BuiltMap)); case 'ExpressionAttributeValues': result.expressionAttributeValues.replace((serializers.deserialize( value, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), ], ), - ) as _i9.BuiltMap)); + ) as _i10.BuiltMap)); + case 'ReturnValuesOnConditionCheckFailure': + result.returnValuesOnConditionCheckFailure = (serializers.deserialize( + value, + specifiedType: + const FullType(_i9.ReturnValuesOnConditionCheckFailure), + ) as _i9.ReturnValuesOnConditionCheckFailure); } } @@ -370,7 +392,8 @@ class DeleteItemInputAwsJson10Serializer :returnItemCollectionMetrics, :conditionExpression, :expressionAttributeNames, - :expressionAttributeValues + :expressionAttributeValues, + :returnValuesOnConditionCheckFailure ) = object; result$.addAll([ 'TableName', @@ -382,7 +405,7 @@ class DeleteItemInputAwsJson10Serializer serializers.serialize( key, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), @@ -396,7 +419,7 @@ class DeleteItemInputAwsJson10Serializer ..add(serializers.serialize( expected, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i4.ExpectedAttributeValue), @@ -450,7 +473,7 @@ class DeleteItemInputAwsJson10Serializer ..add(serializers.serialize( expressionAttributeNames, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(String), @@ -464,7 +487,7 @@ class DeleteItemInputAwsJson10Serializer ..add(serializers.serialize( expressionAttributeValues, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), @@ -472,6 +495,15 @@ class DeleteItemInputAwsJson10Serializer ), )); } + if (returnValuesOnConditionCheckFailure != null) { + result$ + ..add('ReturnValuesOnConditionCheckFailure') + ..add(serializers.serialize( + returnValuesOnConditionCheckFailure, + specifiedType: + const FullType(_i9.ReturnValuesOnConditionCheckFailure), + )); + } return result$; } } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/delete_item_input.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/delete_item_input.g.dart index 95061ff03b..3fe0373500 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/delete_item_input.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/delete_item_input.g.dart @@ -10,9 +10,9 @@ class _$DeleteItemInput extends DeleteItemInput { @override final String tableName; @override - final _i9.BuiltMap key; + final _i10.BuiltMap key; @override - final _i9.BuiltMap? expected; + final _i10.BuiltMap? expected; @override final _i5.ConditionalOperator? conditionalOperator; @override @@ -24,9 +24,12 @@ class _$DeleteItemInput extends DeleteItemInput { @override final String? conditionExpression; @override - final _i9.BuiltMap? expressionAttributeNames; + final _i10.BuiltMap? expressionAttributeNames; @override - final _i9.BuiltMap? expressionAttributeValues; + final _i10.BuiltMap? expressionAttributeValues; + @override + final _i9.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure; factory _$DeleteItemInput([void Function(DeleteItemInputBuilder)? updates]) => (new DeleteItemInputBuilder()..update(updates))._build(); @@ -41,7 +44,8 @@ class _$DeleteItemInput extends DeleteItemInput { this.returnItemCollectionMetrics, this.conditionExpression, this.expressionAttributeNames, - this.expressionAttributeValues}) + this.expressionAttributeValues, + this.returnValuesOnConditionCheckFailure}) : super._() { BuiltValueNullFieldError.checkNotNull( tableName, r'DeleteItemInput', 'tableName'); @@ -69,7 +73,9 @@ class _$DeleteItemInput extends DeleteItemInput { returnItemCollectionMetrics == other.returnItemCollectionMetrics && conditionExpression == other.conditionExpression && expressionAttributeNames == other.expressionAttributeNames && - expressionAttributeValues == other.expressionAttributeValues; + expressionAttributeValues == other.expressionAttributeValues && + returnValuesOnConditionCheckFailure == + other.returnValuesOnConditionCheckFailure; } @override @@ -85,6 +91,7 @@ class _$DeleteItemInput extends DeleteItemInput { _$hash = $jc(_$hash, conditionExpression.hashCode); _$hash = $jc(_$hash, expressionAttributeNames.hashCode); _$hash = $jc(_$hash, expressionAttributeValues.hashCode); + _$hash = $jc(_$hash, returnValuesOnConditionCheckFailure.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -98,16 +105,17 @@ class DeleteItemInputBuilder String? get tableName => _$this._tableName; set tableName(String? tableName) => _$this._tableName = tableName; - _i9.MapBuilder? _key; - _i9.MapBuilder get key => - _$this._key ??= new _i9.MapBuilder(); - set key(_i9.MapBuilder? key) => _$this._key = key; + _i10.MapBuilder? _key; + _i10.MapBuilder get key => + _$this._key ??= new _i10.MapBuilder(); + set key(_i10.MapBuilder? key) => + _$this._key = key; - _i9.MapBuilder? _expected; - _i9.MapBuilder get expected => + _i10.MapBuilder? _expected; + _i10.MapBuilder get expected => _$this._expected ??= - new _i9.MapBuilder(); - set expected(_i9.MapBuilder? expected) => + new _i10.MapBuilder(); + set expected(_i10.MapBuilder? expected) => _$this._expected = expected; _i5.ConditionalOperator? _conditionalOperator; @@ -140,22 +148,33 @@ class DeleteItemInputBuilder set conditionExpression(String? conditionExpression) => _$this._conditionExpression = conditionExpression; - _i9.MapBuilder? _expressionAttributeNames; - _i9.MapBuilder get expressionAttributeNames => - _$this._expressionAttributeNames ??= new _i9.MapBuilder(); + _i10.MapBuilder? _expressionAttributeNames; + _i10.MapBuilder get expressionAttributeNames => + _$this._expressionAttributeNames ??= + new _i10.MapBuilder(); set expressionAttributeNames( - _i9.MapBuilder? expressionAttributeNames) => + _i10.MapBuilder? expressionAttributeNames) => _$this._expressionAttributeNames = expressionAttributeNames; - _i9.MapBuilder? _expressionAttributeValues; - _i9.MapBuilder get expressionAttributeValues => + _i10.MapBuilder? _expressionAttributeValues; + _i10.MapBuilder get expressionAttributeValues => _$this._expressionAttributeValues ??= - new _i9.MapBuilder(); + new _i10.MapBuilder(); set expressionAttributeValues( - _i9.MapBuilder? + _i10.MapBuilder? expressionAttributeValues) => _$this._expressionAttributeValues = expressionAttributeValues; + _i9.ReturnValuesOnConditionCheckFailure? _returnValuesOnConditionCheckFailure; + _i9.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure => + _$this._returnValuesOnConditionCheckFailure; + set returnValuesOnConditionCheckFailure( + _i9.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure) => + _$this._returnValuesOnConditionCheckFailure = + returnValuesOnConditionCheckFailure; + DeleteItemInputBuilder() { DeleteItemInput._init(this); } @@ -173,6 +192,8 @@ class DeleteItemInputBuilder _conditionExpression = $v.conditionExpression; _expressionAttributeNames = $v.expressionAttributeNames?.toBuilder(); _expressionAttributeValues = $v.expressionAttributeValues?.toBuilder(); + _returnValuesOnConditionCheckFailure = + $v.returnValuesOnConditionCheckFailure; _$v = null; } return this; @@ -207,7 +228,9 @@ class DeleteItemInputBuilder returnItemCollectionMetrics: returnItemCollectionMetrics, conditionExpression: conditionExpression, expressionAttributeNames: _expressionAttributeNames?.build(), - expressionAttributeValues: _expressionAttributeValues?.build()); + expressionAttributeValues: _expressionAttributeValues?.build(), + returnValuesOnConditionCheckFailure: + returnValuesOnConditionCheckFailure); } catch (_) { late String _$failedField; try { diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/execute_statement_input.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/execute_statement_input.dart index 168284fe92..da7ff32b76 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/execute_statement_input.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/execute_statement_input.dart @@ -4,7 +4,7 @@ library smoke_test.dynamo_db.model.execute_statement_input; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i2; -import 'package:built_collection/built_collection.dart' as _i5; +import 'package:built_collection/built_collection.dart' as _i6; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:smithy/smithy.dart' as _i1; @@ -12,6 +12,8 @@ import 'package:smoke_test/src/sdk/src/dynamo_db/model/attribute_value.dart' as _i3; import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_consumed_capacity.dart' as _i4; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_values_on_condition_check_failure.dart' + as _i5; part 'execute_statement_input.g.dart'; @@ -27,14 +29,17 @@ abstract class ExecuteStatementInput String? nextToken, _i4.ReturnConsumedCapacity? returnConsumedCapacity, int? limit, + _i5.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure, }) { return _$ExecuteStatementInput._( statement: statement, - parameters: parameters == null ? null : _i5.BuiltList(parameters), + parameters: parameters == null ? null : _i6.BuiltList(parameters), consistentRead: consistentRead, nextToken: nextToken, returnConsumedCapacity: returnConsumedCapacity, limit: limit, + returnValuesOnConditionCheckFailure: returnValuesOnConditionCheckFailure, ); } @@ -62,7 +67,7 @@ abstract class ExecuteStatementInput String get statement; /// The parameters for the PartiQL statement, if any. - _i5.BuiltList<_i3.AttributeValue>? get parameters; + _i6.BuiltList<_i3.AttributeValue>? get parameters; /// The consistency of a read operation. If set to `true`, then a strongly consistent read is used; otherwise, an eventually consistent read is used. bool? get consistentRead; @@ -83,6 +88,12 @@ abstract class ExecuteStatementInput /// The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, along with a key in `LastEvaluatedKey` to apply in a subsequent operation so you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in `LastEvaluatedKey` to apply in a subsequent operation to continue the operation. int? get limit; + + /// An optional parameter that returns the item attributes for an `ExecuteStatement` operation that failed a condition check. + /// + /// There is no 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. + _i5.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure; @override ExecuteStatementInput getPayload() => this; @override @@ -93,6 +104,7 @@ abstract class ExecuteStatementInput nextToken, returnConsumedCapacity, limit, + returnValuesOnConditionCheckFailure, ]; @override String toString() { @@ -120,6 +132,10 @@ abstract class ExecuteStatementInput ..add( 'limit', limit, + ) + ..add( + 'returnValuesOnConditionCheckFailure', + returnValuesOnConditionCheckFailure, ); return helper.toString(); } @@ -167,10 +183,10 @@ class ExecuteStatementInputAwsJson10Serializer result.parameters.replace((serializers.deserialize( value, specifiedType: const FullType( - _i5.BuiltList, + _i6.BuiltList, [FullType(_i3.AttributeValue)], ), - ) as _i5.BuiltList<_i3.AttributeValue>)); + ) as _i6.BuiltList<_i3.AttributeValue>)); case 'ConsistentRead': result.consistentRead = (serializers.deserialize( value, @@ -191,6 +207,12 @@ class ExecuteStatementInputAwsJson10Serializer value, specifiedType: const FullType(int), ) as int); + case 'ReturnValuesOnConditionCheckFailure': + result.returnValuesOnConditionCheckFailure = (serializers.deserialize( + value, + specifiedType: + const FullType(_i5.ReturnValuesOnConditionCheckFailure), + ) as _i5.ReturnValuesOnConditionCheckFailure); } } @@ -210,7 +232,8 @@ class ExecuteStatementInputAwsJson10Serializer :consistentRead, :nextToken, :returnConsumedCapacity, - :limit + :limit, + :returnValuesOnConditionCheckFailure ) = object; result$.addAll([ 'Statement', @@ -225,7 +248,7 @@ class ExecuteStatementInputAwsJson10Serializer ..add(serializers.serialize( parameters, specifiedType: const FullType( - _i5.BuiltList, + _i6.BuiltList, [FullType(_i3.AttributeValue)], ), )); @@ -262,6 +285,15 @@ class ExecuteStatementInputAwsJson10Serializer specifiedType: const FullType(int), )); } + if (returnValuesOnConditionCheckFailure != null) { + result$ + ..add('ReturnValuesOnConditionCheckFailure') + ..add(serializers.serialize( + returnValuesOnConditionCheckFailure, + specifiedType: + const FullType(_i5.ReturnValuesOnConditionCheckFailure), + )); + } return result$; } } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/execute_statement_input.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/execute_statement_input.g.dart index 233f3c8516..c0e294e89d 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/execute_statement_input.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/execute_statement_input.g.dart @@ -10,7 +10,7 @@ class _$ExecuteStatementInput extends ExecuteStatementInput { @override final String statement; @override - final _i5.BuiltList<_i3.AttributeValue>? parameters; + final _i6.BuiltList<_i3.AttributeValue>? parameters; @override final bool? consistentRead; @override @@ -19,6 +19,9 @@ class _$ExecuteStatementInput extends ExecuteStatementInput { final _i4.ReturnConsumedCapacity? returnConsumedCapacity; @override final int? limit; + @override + final _i5.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure; factory _$ExecuteStatementInput( [void Function(ExecuteStatementInputBuilder)? updates]) => @@ -30,7 +33,8 @@ class _$ExecuteStatementInput extends ExecuteStatementInput { this.consistentRead, this.nextToken, this.returnConsumedCapacity, - this.limit}) + this.limit, + this.returnValuesOnConditionCheckFailure}) : super._() { BuiltValueNullFieldError.checkNotNull( statement, r'ExecuteStatementInput', 'statement'); @@ -54,7 +58,9 @@ class _$ExecuteStatementInput extends ExecuteStatementInput { consistentRead == other.consistentRead && nextToken == other.nextToken && returnConsumedCapacity == other.returnConsumedCapacity && - limit == other.limit; + limit == other.limit && + returnValuesOnConditionCheckFailure == + other.returnValuesOnConditionCheckFailure; } @override @@ -66,6 +72,7 @@ class _$ExecuteStatementInput extends ExecuteStatementInput { _$hash = $jc(_$hash, nextToken.hashCode); _$hash = $jc(_$hash, returnConsumedCapacity.hashCode); _$hash = $jc(_$hash, limit.hashCode); + _$hash = $jc(_$hash, returnValuesOnConditionCheckFailure.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -79,10 +86,10 @@ class ExecuteStatementInputBuilder String? get statement => _$this._statement; set statement(String? statement) => _$this._statement = statement; - _i5.ListBuilder<_i3.AttributeValue>? _parameters; - _i5.ListBuilder<_i3.AttributeValue> get parameters => - _$this._parameters ??= new _i5.ListBuilder<_i3.AttributeValue>(); - set parameters(_i5.ListBuilder<_i3.AttributeValue>? parameters) => + _i6.ListBuilder<_i3.AttributeValue>? _parameters; + _i6.ListBuilder<_i3.AttributeValue> get parameters => + _$this._parameters ??= new _i6.ListBuilder<_i3.AttributeValue>(); + set parameters(_i6.ListBuilder<_i3.AttributeValue>? parameters) => _$this._parameters = parameters; bool? _consistentRead; @@ -105,6 +112,16 @@ class ExecuteStatementInputBuilder int? get limit => _$this._limit; set limit(int? limit) => _$this._limit = limit; + _i5.ReturnValuesOnConditionCheckFailure? _returnValuesOnConditionCheckFailure; + _i5.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure => + _$this._returnValuesOnConditionCheckFailure; + set returnValuesOnConditionCheckFailure( + _i5.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure) => + _$this._returnValuesOnConditionCheckFailure = + returnValuesOnConditionCheckFailure; + ExecuteStatementInputBuilder() { ExecuteStatementInput._init(this); } @@ -118,6 +135,8 @@ class ExecuteStatementInputBuilder _nextToken = $v.nextToken; _returnConsumedCapacity = $v.returnConsumedCapacity; _limit = $v.limit; + _returnValuesOnConditionCheckFailure = + $v.returnValuesOnConditionCheckFailure; _$v = null; } return this; @@ -148,7 +167,9 @@ class ExecuteStatementInputBuilder consistentRead: consistentRead, nextToken: nextToken, returnConsumedCapacity: returnConsumedCapacity, - limit: limit); + limit: limit, + returnValuesOnConditionCheckFailure: + returnValuesOnConditionCheckFailure); } catch (_) { late String _$failedField; try { diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/parameterized_statement.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/parameterized_statement.dart index 624f00fadb..f2b721c06a 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/parameterized_statement.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/parameterized_statement.dart @@ -4,12 +4,14 @@ library smoke_test.dynamo_db.model.parameterized_statement; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i1; -import 'package:built_collection/built_collection.dart' as _i3; +import 'package:built_collection/built_collection.dart' as _i4; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:smithy/smithy.dart' as _i4; +import 'package:smithy/smithy.dart' as _i5; import 'package:smoke_test/src/sdk/src/dynamo_db/model/attribute_value.dart' as _i2; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_values_on_condition_check_failure.dart' + as _i3; part 'parameterized_statement.g.dart'; @@ -21,10 +23,13 @@ abstract class ParameterizedStatement factory ParameterizedStatement({ required String statement, List<_i2.AttributeValue>? parameters, + _i3.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure, }) { return _$ParameterizedStatement._( statement: statement, - parameters: parameters == null ? null : _i3.BuiltList(parameters), + parameters: parameters == null ? null : _i4.BuiltList(parameters), + returnValuesOnConditionCheckFailure: returnValuesOnConditionCheckFailure, ); } @@ -35,7 +40,7 @@ abstract class ParameterizedStatement const ParameterizedStatement._(); - static const List<_i4.SmithySerializer> serializers = + static const List<_i5.SmithySerializer> serializers = [ParameterizedStatementAwsJson10Serializer()]; @BuiltValueHook(initializeBuilder: true) @@ -45,11 +50,18 @@ abstract class ParameterizedStatement String get statement; /// The parameter values. - _i3.BuiltList<_i2.AttributeValue>? get parameters; + _i4.BuiltList<_i2.AttributeValue>? get parameters; + + /// An optional parameter that returns the item attributes for a PartiQL `ParameterizedStatement` operation that failed a condition check. + /// + /// There is no 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. + _i3.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure; @override List get props => [ statement, parameters, + returnValuesOnConditionCheckFailure, ]; @override String toString() { @@ -61,13 +73,17 @@ abstract class ParameterizedStatement ..add( 'parameters', parameters, + ) + ..add( + 'returnValuesOnConditionCheckFailure', + returnValuesOnConditionCheckFailure, ); return helper.toString(); } } class ParameterizedStatementAwsJson10Serializer - extends _i4.StructuredSmithySerializer { + extends _i5.StructuredSmithySerializer { const ParameterizedStatementAwsJson10Serializer() : super('ParameterizedStatement'); @@ -77,8 +93,8 @@ class ParameterizedStatementAwsJson10Serializer _$ParameterizedStatement, ]; @override - Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( + Iterable<_i5.ShapeId> get supportedProtocols => const [ + _i5.ShapeId( namespace: 'aws.protocols', shape: 'awsJson1_0', ) @@ -108,10 +124,16 @@ class ParameterizedStatementAwsJson10Serializer result.parameters.replace((serializers.deserialize( value, specifiedType: const FullType( - _i3.BuiltList, + _i4.BuiltList, [FullType(_i2.AttributeValue)], ), - ) as _i3.BuiltList<_i2.AttributeValue>)); + ) as _i4.BuiltList<_i2.AttributeValue>)); + case 'ReturnValuesOnConditionCheckFailure': + result.returnValuesOnConditionCheckFailure = (serializers.deserialize( + value, + specifiedType: + const FullType(_i3.ReturnValuesOnConditionCheckFailure), + ) as _i3.ReturnValuesOnConditionCheckFailure); } } @@ -125,7 +147,11 @@ class ParameterizedStatementAwsJson10Serializer FullType specifiedType = FullType.unspecified, }) { final result$ = []; - final ParameterizedStatement(:statement, :parameters) = object; + final ParameterizedStatement( + :statement, + :parameters, + :returnValuesOnConditionCheckFailure + ) = object; result$.addAll([ 'Statement', serializers.serialize( @@ -139,11 +165,20 @@ class ParameterizedStatementAwsJson10Serializer ..add(serializers.serialize( parameters, specifiedType: const FullType( - _i3.BuiltList, + _i4.BuiltList, [FullType(_i2.AttributeValue)], ), )); } + if (returnValuesOnConditionCheckFailure != null) { + result$ + ..add('ReturnValuesOnConditionCheckFailure') + ..add(serializers.serialize( + returnValuesOnConditionCheckFailure, + specifiedType: + const FullType(_i3.ReturnValuesOnConditionCheckFailure), + )); + } return result$; } } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/parameterized_statement.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/parameterized_statement.g.dart index 48f6297277..dff4f442b7 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/parameterized_statement.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/parameterized_statement.g.dart @@ -10,13 +10,19 @@ class _$ParameterizedStatement extends ParameterizedStatement { @override final String statement; @override - final _i3.BuiltList<_i2.AttributeValue>? parameters; + final _i4.BuiltList<_i2.AttributeValue>? parameters; + @override + final _i3.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure; factory _$ParameterizedStatement( [void Function(ParameterizedStatementBuilder)? updates]) => (new ParameterizedStatementBuilder()..update(updates))._build(); - _$ParameterizedStatement._({required this.statement, this.parameters}) + _$ParameterizedStatement._( + {required this.statement, + this.parameters, + this.returnValuesOnConditionCheckFailure}) : super._() { BuiltValueNullFieldError.checkNotNull( statement, r'ParameterizedStatement', 'statement'); @@ -36,7 +42,9 @@ class _$ParameterizedStatement extends ParameterizedStatement { if (identical(other, this)) return true; return other is ParameterizedStatement && statement == other.statement && - parameters == other.parameters; + parameters == other.parameters && + returnValuesOnConditionCheckFailure == + other.returnValuesOnConditionCheckFailure; } @override @@ -44,6 +52,7 @@ class _$ParameterizedStatement extends ParameterizedStatement { var _$hash = 0; _$hash = $jc(_$hash, statement.hashCode); _$hash = $jc(_$hash, parameters.hashCode); + _$hash = $jc(_$hash, returnValuesOnConditionCheckFailure.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -57,12 +66,22 @@ class ParameterizedStatementBuilder String? get statement => _$this._statement; set statement(String? statement) => _$this._statement = statement; - _i3.ListBuilder<_i2.AttributeValue>? _parameters; - _i3.ListBuilder<_i2.AttributeValue> get parameters => - _$this._parameters ??= new _i3.ListBuilder<_i2.AttributeValue>(); - set parameters(_i3.ListBuilder<_i2.AttributeValue>? parameters) => + _i4.ListBuilder<_i2.AttributeValue>? _parameters; + _i4.ListBuilder<_i2.AttributeValue> get parameters => + _$this._parameters ??= new _i4.ListBuilder<_i2.AttributeValue>(); + set parameters(_i4.ListBuilder<_i2.AttributeValue>? parameters) => _$this._parameters = parameters; + _i3.ReturnValuesOnConditionCheckFailure? _returnValuesOnConditionCheckFailure; + _i3.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure => + _$this._returnValuesOnConditionCheckFailure; + set returnValuesOnConditionCheckFailure( + _i3.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure) => + _$this._returnValuesOnConditionCheckFailure = + returnValuesOnConditionCheckFailure; + ParameterizedStatementBuilder() { ParameterizedStatement._init(this); } @@ -72,6 +91,8 @@ class ParameterizedStatementBuilder if ($v != null) { _statement = $v.statement; _parameters = $v.parameters?.toBuilder(); + _returnValuesOnConditionCheckFailure = + $v.returnValuesOnConditionCheckFailure; _$v = null; } return this; @@ -98,7 +119,9 @@ class ParameterizedStatementBuilder new _$ParameterizedStatement._( statement: BuiltValueNullFieldError.checkNotNull( statement, r'ParameterizedStatement', 'statement'), - parameters: _parameters?.build()); + parameters: _parameters?.build(), + returnValuesOnConditionCheckFailure: + returnValuesOnConditionCheckFailure); } catch (_) { late String _$failedField; try { diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/put_item_input.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/put_item_input.dart index fbaf1b9027..9bc773ad1c 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/put_item_input.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/put_item_input.dart @@ -4,7 +4,7 @@ library smoke_test.dynamo_db.model.put_item_input; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i2; -import 'package:built_collection/built_collection.dart' as _i9; +import 'package:built_collection/built_collection.dart' as _i10; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:smithy/smithy.dart' as _i1; @@ -20,6 +20,8 @@ import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_item_collection_me as _i7; import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_value.dart' as _i5; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_values_on_condition_check_failure.dart' + as _i9; part 'put_item_input.g.dart'; @@ -39,11 +41,13 @@ abstract class PutItemInput String? conditionExpression, Map? expressionAttributeNames, Map? expressionAttributeValues, + _i9.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure, }) { return _$PutItemInput._( tableName: tableName, - item: _i9.BuiltMap(item), - expected: expected == null ? null : _i9.BuiltMap(expected), + item: _i10.BuiltMap(item), + expected: expected == null ? null : _i10.BuiltMap(expected), returnValues: returnValues, returnConsumedCapacity: returnConsumedCapacity, returnItemCollectionMetrics: returnItemCollectionMetrics, @@ -51,10 +55,11 @@ abstract class PutItemInput conditionExpression: conditionExpression, expressionAttributeNames: expressionAttributeNames == null ? null - : _i9.BuiltMap(expressionAttributeNames), + : _i10.BuiltMap(expressionAttributeNames), expressionAttributeValues: expressionAttributeValues == null ? null - : _i9.BuiltMap(expressionAttributeValues), + : _i10.BuiltMap(expressionAttributeValues), + returnValuesOnConditionCheckFailure: returnValuesOnConditionCheckFailure, ); } @@ -92,10 +97,10 @@ abstract class PutItemInput /// For more information about primary keys, see [Primary Key](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.CoreComponents.html#HowItWorks.CoreComponents.PrimaryKey) in the _Amazon DynamoDB Developer Guide_. /// /// Each element in the `Item` map is an `AttributeValue` object. - _i9.BuiltMap get item; + _i10.BuiltMap get item; /// This is a legacy parameter. Use `ConditionExpression` instead. For more information, see [Expected](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) in the _Amazon DynamoDB Developer Guide_. - _i9.BuiltMap? get expected; + _i10.BuiltMap? get expected; /// Use `ReturnValues` if you want to get the item attributes as they appeared before they were updated with the `PutItem` request. For `PutItem`, the valid values are: /// @@ -171,7 +176,7 @@ abstract class PutItemInput /// Tokens that begin with the **:** character are _expression attribute values_, which are placeholders for the actual value at runtime. /// /// For more information on expression attribute names, see [Specifying Item Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) in the _Amazon DynamoDB Developer Guide_. - _i9.BuiltMap? get expressionAttributeNames; + _i10.BuiltMap? get expressionAttributeNames; /// One or more values that can be substituted in an expression. /// @@ -188,7 +193,13 @@ abstract class PutItemInput /// `ProductStatus IN (:avail, :back, :disc)` /// /// For more information on expression attribute values, see [Condition Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) in the _Amazon DynamoDB Developer Guide_. - _i9.BuiltMap? get expressionAttributeValues; + _i10.BuiltMap? get expressionAttributeValues; + + /// An optional parameter that returns the item attributes for a `PutItem` operation that failed a condition check. + /// + /// There is no 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. + _i9.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure; @override PutItemInput getPayload() => this; @override @@ -203,6 +214,7 @@ abstract class PutItemInput conditionExpression, expressionAttributeNames, expressionAttributeValues, + returnValuesOnConditionCheckFailure, ]; @override String toString() { @@ -246,6 +258,10 @@ abstract class PutItemInput ..add( 'expressionAttributeValues', expressionAttributeValues, + ) + ..add( + 'returnValuesOnConditionCheckFailure', + returnValuesOnConditionCheckFailure, ); return helper.toString(); } @@ -292,24 +308,24 @@ class PutItemInputAwsJson10Serializer result.item.replace((serializers.deserialize( value, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), ], ), - ) as _i9.BuiltMap)); + ) as _i10.BuiltMap)); case 'Expected': result.expected.replace((serializers.deserialize( value, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i4.ExpectedAttributeValue), ], ), - ) as _i9.BuiltMap)); + ) as _i10.BuiltMap)); case 'ReturnValues': result.returnValues = (serializers.deserialize( value, @@ -339,24 +355,30 @@ class PutItemInputAwsJson10Serializer result.expressionAttributeNames.replace((serializers.deserialize( value, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(String), ], ), - ) as _i9.BuiltMap)); + ) as _i10.BuiltMap)); case 'ExpressionAttributeValues': result.expressionAttributeValues.replace((serializers.deserialize( value, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), ], ), - ) as _i9.BuiltMap)); + ) as _i10.BuiltMap)); + case 'ReturnValuesOnConditionCheckFailure': + result.returnValuesOnConditionCheckFailure = (serializers.deserialize( + value, + specifiedType: + const FullType(_i9.ReturnValuesOnConditionCheckFailure), + ) as _i9.ReturnValuesOnConditionCheckFailure); } } @@ -380,7 +402,8 @@ class PutItemInputAwsJson10Serializer :conditionalOperator, :conditionExpression, :expressionAttributeNames, - :expressionAttributeValues + :expressionAttributeValues, + :returnValuesOnConditionCheckFailure ) = object; result$.addAll([ 'TableName', @@ -392,7 +415,7 @@ class PutItemInputAwsJson10Serializer serializers.serialize( item, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), @@ -406,7 +429,7 @@ class PutItemInputAwsJson10Serializer ..add(serializers.serialize( expected, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i4.ExpectedAttributeValue), @@ -460,7 +483,7 @@ class PutItemInputAwsJson10Serializer ..add(serializers.serialize( expressionAttributeNames, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(String), @@ -474,7 +497,7 @@ class PutItemInputAwsJson10Serializer ..add(serializers.serialize( expressionAttributeValues, specifiedType: const FullType( - _i9.BuiltMap, + _i10.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), @@ -482,6 +505,15 @@ class PutItemInputAwsJson10Serializer ), )); } + if (returnValuesOnConditionCheckFailure != null) { + result$ + ..add('ReturnValuesOnConditionCheckFailure') + ..add(serializers.serialize( + returnValuesOnConditionCheckFailure, + specifiedType: + const FullType(_i9.ReturnValuesOnConditionCheckFailure), + )); + } return result$; } } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/put_item_input.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/put_item_input.g.dart index fa0a366082..d96fbf72f6 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/put_item_input.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/put_item_input.g.dart @@ -10,9 +10,9 @@ class _$PutItemInput extends PutItemInput { @override final String tableName; @override - final _i9.BuiltMap item; + final _i10.BuiltMap item; @override - final _i9.BuiltMap? expected; + final _i10.BuiltMap? expected; @override final _i5.ReturnValue? returnValues; @override @@ -24,9 +24,12 @@ class _$PutItemInput extends PutItemInput { @override final String? conditionExpression; @override - final _i9.BuiltMap? expressionAttributeNames; + final _i10.BuiltMap? expressionAttributeNames; @override - final _i9.BuiltMap? expressionAttributeValues; + final _i10.BuiltMap? expressionAttributeValues; + @override + final _i9.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure; factory _$PutItemInput([void Function(PutItemInputBuilder)? updates]) => (new PutItemInputBuilder()..update(updates))._build(); @@ -41,7 +44,8 @@ class _$PutItemInput extends PutItemInput { this.conditionalOperator, this.conditionExpression, this.expressionAttributeNames, - this.expressionAttributeValues}) + this.expressionAttributeValues, + this.returnValuesOnConditionCheckFailure}) : super._() { BuiltValueNullFieldError.checkNotNull( tableName, r'PutItemInput', 'tableName'); @@ -68,7 +72,9 @@ class _$PutItemInput extends PutItemInput { conditionalOperator == other.conditionalOperator && conditionExpression == other.conditionExpression && expressionAttributeNames == other.expressionAttributeNames && - expressionAttributeValues == other.expressionAttributeValues; + expressionAttributeValues == other.expressionAttributeValues && + returnValuesOnConditionCheckFailure == + other.returnValuesOnConditionCheckFailure; } @override @@ -84,6 +90,7 @@ class _$PutItemInput extends PutItemInput { _$hash = $jc(_$hash, conditionExpression.hashCode); _$hash = $jc(_$hash, expressionAttributeNames.hashCode); _$hash = $jc(_$hash, expressionAttributeValues.hashCode); + _$hash = $jc(_$hash, returnValuesOnConditionCheckFailure.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -97,17 +104,17 @@ class PutItemInputBuilder String? get tableName => _$this._tableName; set tableName(String? tableName) => _$this._tableName = tableName; - _i9.MapBuilder? _item; - _i9.MapBuilder get item => - _$this._item ??= new _i9.MapBuilder(); - set item(_i9.MapBuilder? item) => + _i10.MapBuilder? _item; + _i10.MapBuilder get item => + _$this._item ??= new _i10.MapBuilder(); + set item(_i10.MapBuilder? item) => _$this._item = item; - _i9.MapBuilder? _expected; - _i9.MapBuilder get expected => + _i10.MapBuilder? _expected; + _i10.MapBuilder get expected => _$this._expected ??= - new _i9.MapBuilder(); - set expected(_i9.MapBuilder? expected) => + new _i10.MapBuilder(); + set expected(_i10.MapBuilder? expected) => _$this._expected = expected; _i5.ReturnValue? _returnValues; @@ -140,22 +147,33 @@ class PutItemInputBuilder set conditionExpression(String? conditionExpression) => _$this._conditionExpression = conditionExpression; - _i9.MapBuilder? _expressionAttributeNames; - _i9.MapBuilder get expressionAttributeNames => - _$this._expressionAttributeNames ??= new _i9.MapBuilder(); + _i10.MapBuilder? _expressionAttributeNames; + _i10.MapBuilder get expressionAttributeNames => + _$this._expressionAttributeNames ??= + new _i10.MapBuilder(); set expressionAttributeNames( - _i9.MapBuilder? expressionAttributeNames) => + _i10.MapBuilder? expressionAttributeNames) => _$this._expressionAttributeNames = expressionAttributeNames; - _i9.MapBuilder? _expressionAttributeValues; - _i9.MapBuilder get expressionAttributeValues => + _i10.MapBuilder? _expressionAttributeValues; + _i10.MapBuilder get expressionAttributeValues => _$this._expressionAttributeValues ??= - new _i9.MapBuilder(); + new _i10.MapBuilder(); set expressionAttributeValues( - _i9.MapBuilder? + _i10.MapBuilder? expressionAttributeValues) => _$this._expressionAttributeValues = expressionAttributeValues; + _i9.ReturnValuesOnConditionCheckFailure? _returnValuesOnConditionCheckFailure; + _i9.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure => + _$this._returnValuesOnConditionCheckFailure; + set returnValuesOnConditionCheckFailure( + _i9.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure) => + _$this._returnValuesOnConditionCheckFailure = + returnValuesOnConditionCheckFailure; + PutItemInputBuilder() { PutItemInput._init(this); } @@ -173,6 +191,8 @@ class PutItemInputBuilder _conditionExpression = $v.conditionExpression; _expressionAttributeNames = $v.expressionAttributeNames?.toBuilder(); _expressionAttributeValues = $v.expressionAttributeValues?.toBuilder(); + _returnValuesOnConditionCheckFailure = + $v.returnValuesOnConditionCheckFailure; _$v = null; } return this; @@ -207,7 +227,9 @@ class PutItemInputBuilder conditionalOperator: conditionalOperator, conditionExpression: conditionExpression, expressionAttributeNames: _expressionAttributeNames?.build(), - expressionAttributeValues: _expressionAttributeValues?.build()); + expressionAttributeValues: _expressionAttributeValues?.build(), + returnValuesOnConditionCheckFailure: + returnValuesOnConditionCheckFailure); } catch (_) { late String _$failedField; try { diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/update_item_input.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/update_item_input.dart index 762980cf06..70950d990b 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/update_item_input.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/update_item_input.dart @@ -4,7 +4,7 @@ library smoke_test.dynamo_db.model.update_item_input; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i2; -import 'package:built_collection/built_collection.dart' as _i10; +import 'package:built_collection/built_collection.dart' as _i11; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:smithy/smithy.dart' as _i1; @@ -22,6 +22,8 @@ import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_item_collection_me as _i9; import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_value.dart' as _i7; +import 'package:smoke_test/src/sdk/src/dynamo_db/model/return_values_on_condition_check_failure.dart' + as _i10; part 'update_item_input.g.dart'; @@ -43,13 +45,15 @@ abstract class UpdateItemInput String? conditionExpression, Map? expressionAttributeNames, Map? expressionAttributeValues, + _i10.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure, }) { return _$UpdateItemInput._( tableName: tableName, - key: _i10.BuiltMap(key), + key: _i11.BuiltMap(key), attributeUpdates: - attributeUpdates == null ? null : _i10.BuiltMap(attributeUpdates), - expected: expected == null ? null : _i10.BuiltMap(expected), + attributeUpdates == null ? null : _i11.BuiltMap(attributeUpdates), + expected: expected == null ? null : _i11.BuiltMap(expected), conditionalOperator: conditionalOperator, returnValues: returnValues, returnConsumedCapacity: returnConsumedCapacity, @@ -58,10 +62,11 @@ abstract class UpdateItemInput conditionExpression: conditionExpression, expressionAttributeNames: expressionAttributeNames == null ? null - : _i10.BuiltMap(expressionAttributeNames), + : _i11.BuiltMap(expressionAttributeNames), expressionAttributeValues: expressionAttributeValues == null ? null - : _i10.BuiltMap(expressionAttributeValues), + : _i11.BuiltMap(expressionAttributeValues), + returnValuesOnConditionCheckFailure: returnValuesOnConditionCheckFailure, ); } @@ -91,13 +96,13 @@ abstract class UpdateItemInput /// The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute. /// /// For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key. - _i10.BuiltMap get key; + _i11.BuiltMap get key; /// This is a legacy parameter. Use `UpdateExpression` instead. For more information, see [AttributeUpdates](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributeUpdates.html) in the _Amazon DynamoDB Developer Guide_. - _i10.BuiltMap? get attributeUpdates; + _i11.BuiltMap? get attributeUpdates; /// This is a legacy parameter. Use `ConditionExpression` instead. For more information, see [Expected](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) in the _Amazon DynamoDB Developer Guide_. - _i10.BuiltMap? get expected; + _i11.BuiltMap? get expected; /// This is a legacy parameter. Use `ConditionExpression` instead. For more information, see [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) in the _Amazon DynamoDB Developer Guide_. _i6.ConditionalOperator? get conditionalOperator; @@ -221,7 +226,7 @@ abstract class UpdateItemInput /// Tokens that begin with the **:** character are _expression attribute values_, which are placeholders for the actual value at runtime. /// /// For more information about expression attribute names, see [Specifying Item Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) in the _Amazon DynamoDB Developer Guide_. - _i10.BuiltMap? get expressionAttributeNames; + _i11.BuiltMap? get expressionAttributeNames; /// One or more values that can be substituted in an expression. /// @@ -238,7 +243,13 @@ abstract class UpdateItemInput /// `ProductStatus IN (:avail, :back, :disc)` /// /// For more information on expression attribute values, see [Condition Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) in the _Amazon DynamoDB Developer Guide_. - _i10.BuiltMap? get expressionAttributeValues; + _i11.BuiltMap? get expressionAttributeValues; + + /// An optional parameter that returns the item attributes for an `UpdateItem` operation that failed a condition check. + /// + /// There is no 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. + _i10.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure; @override UpdateItemInput getPayload() => this; @override @@ -255,6 +266,7 @@ abstract class UpdateItemInput conditionExpression, expressionAttributeNames, expressionAttributeValues, + returnValuesOnConditionCheckFailure, ]; @override String toString() { @@ -306,6 +318,10 @@ abstract class UpdateItemInput ..add( 'expressionAttributeValues', expressionAttributeValues, + ) + ..add( + 'returnValuesOnConditionCheckFailure', + returnValuesOnConditionCheckFailure, ); return helper.toString(); } @@ -352,35 +368,35 @@ class UpdateItemInputAwsJson10Serializer result.key.replace((serializers.deserialize( value, specifiedType: const FullType( - _i10.BuiltMap, + _i11.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), ], ), - ) as _i10.BuiltMap)); + ) as _i11.BuiltMap)); case 'AttributeUpdates': result.attributeUpdates.replace((serializers.deserialize( value, specifiedType: const FullType( - _i10.BuiltMap, + _i11.BuiltMap, [ FullType(String), FullType(_i4.AttributeValueUpdate), ], ), - ) as _i10.BuiltMap)); + ) as _i11.BuiltMap)); case 'Expected': result.expected.replace((serializers.deserialize( value, specifiedType: const FullType( - _i10.BuiltMap, + _i11.BuiltMap, [ FullType(String), FullType(_i5.ExpectedAttributeValue), ], ), - ) as _i10.BuiltMap)); + ) as _i11.BuiltMap)); case 'ConditionalOperator': result.conditionalOperator = (serializers.deserialize( value, @@ -415,24 +431,30 @@ class UpdateItemInputAwsJson10Serializer result.expressionAttributeNames.replace((serializers.deserialize( value, specifiedType: const FullType( - _i10.BuiltMap, + _i11.BuiltMap, [ FullType(String), FullType(String), ], ), - ) as _i10.BuiltMap)); + ) as _i11.BuiltMap)); case 'ExpressionAttributeValues': result.expressionAttributeValues.replace((serializers.deserialize( value, specifiedType: const FullType( - _i10.BuiltMap, + _i11.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), ], ), - ) as _i10.BuiltMap)); + ) as _i11.BuiltMap)); + case 'ReturnValuesOnConditionCheckFailure': + result.returnValuesOnConditionCheckFailure = (serializers.deserialize( + value, + specifiedType: + const FullType(_i10.ReturnValuesOnConditionCheckFailure), + ) as _i10.ReturnValuesOnConditionCheckFailure); } } @@ -458,7 +480,8 @@ class UpdateItemInputAwsJson10Serializer :updateExpression, :conditionExpression, :expressionAttributeNames, - :expressionAttributeValues + :expressionAttributeValues, + :returnValuesOnConditionCheckFailure ) = object; result$.addAll([ 'TableName', @@ -470,7 +493,7 @@ class UpdateItemInputAwsJson10Serializer serializers.serialize( key, specifiedType: const FullType( - _i10.BuiltMap, + _i11.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), @@ -484,7 +507,7 @@ class UpdateItemInputAwsJson10Serializer ..add(serializers.serialize( attributeUpdates, specifiedType: const FullType( - _i10.BuiltMap, + _i11.BuiltMap, [ FullType(String), FullType(_i4.AttributeValueUpdate), @@ -498,7 +521,7 @@ class UpdateItemInputAwsJson10Serializer ..add(serializers.serialize( expected, specifiedType: const FullType( - _i10.BuiltMap, + _i11.BuiltMap, [ FullType(String), FullType(_i5.ExpectedAttributeValue), @@ -560,7 +583,7 @@ class UpdateItemInputAwsJson10Serializer ..add(serializers.serialize( expressionAttributeNames, specifiedType: const FullType( - _i10.BuiltMap, + _i11.BuiltMap, [ FullType(String), FullType(String), @@ -574,7 +597,7 @@ class UpdateItemInputAwsJson10Serializer ..add(serializers.serialize( expressionAttributeValues, specifiedType: const FullType( - _i10.BuiltMap, + _i11.BuiltMap, [ FullType(String), FullType(_i3.AttributeValue), @@ -582,6 +605,15 @@ class UpdateItemInputAwsJson10Serializer ), )); } + if (returnValuesOnConditionCheckFailure != null) { + result$ + ..add('ReturnValuesOnConditionCheckFailure') + ..add(serializers.serialize( + returnValuesOnConditionCheckFailure, + specifiedType: + const FullType(_i10.ReturnValuesOnConditionCheckFailure), + )); + } return result$; } } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/update_item_input.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/update_item_input.g.dart index a156cc7ebf..6d3849fac6 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/update_item_input.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db/model/update_item_input.g.dart @@ -10,11 +10,11 @@ class _$UpdateItemInput extends UpdateItemInput { @override final String tableName; @override - final _i10.BuiltMap key; + final _i11.BuiltMap key; @override - final _i10.BuiltMap? attributeUpdates; + final _i11.BuiltMap? attributeUpdates; @override - final _i10.BuiltMap? expected; + final _i11.BuiltMap? expected; @override final _i6.ConditionalOperator? conditionalOperator; @override @@ -28,9 +28,12 @@ class _$UpdateItemInput extends UpdateItemInput { @override final String? conditionExpression; @override - final _i10.BuiltMap? expressionAttributeNames; + final _i11.BuiltMap? expressionAttributeNames; @override - final _i10.BuiltMap? expressionAttributeValues; + final _i11.BuiltMap? expressionAttributeValues; + @override + final _i10.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure; factory _$UpdateItemInput([void Function(UpdateItemInputBuilder)? updates]) => (new UpdateItemInputBuilder()..update(updates))._build(); @@ -47,7 +50,8 @@ class _$UpdateItemInput extends UpdateItemInput { this.updateExpression, this.conditionExpression, this.expressionAttributeNames, - this.expressionAttributeValues}) + this.expressionAttributeValues, + this.returnValuesOnConditionCheckFailure}) : super._() { BuiltValueNullFieldError.checkNotNull( tableName, r'UpdateItemInput', 'tableName'); @@ -77,7 +81,9 @@ class _$UpdateItemInput extends UpdateItemInput { updateExpression == other.updateExpression && conditionExpression == other.conditionExpression && expressionAttributeNames == other.expressionAttributeNames && - expressionAttributeValues == other.expressionAttributeValues; + expressionAttributeValues == other.expressionAttributeValues && + returnValuesOnConditionCheckFailure == + other.returnValuesOnConditionCheckFailure; } @override @@ -95,6 +101,7 @@ class _$UpdateItemInput extends UpdateItemInput { _$hash = $jc(_$hash, conditionExpression.hashCode); _$hash = $jc(_$hash, expressionAttributeNames.hashCode); _$hash = $jc(_$hash, expressionAttributeValues.hashCode); + _$hash = $jc(_$hash, returnValuesOnConditionCheckFailure.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -108,26 +115,26 @@ class UpdateItemInputBuilder String? get tableName => _$this._tableName; set tableName(String? tableName) => _$this._tableName = tableName; - _i10.MapBuilder? _key; - _i10.MapBuilder get key => - _$this._key ??= new _i10.MapBuilder(); - set key(_i10.MapBuilder? key) => + _i11.MapBuilder? _key; + _i11.MapBuilder get key => + _$this._key ??= new _i11.MapBuilder(); + set key(_i11.MapBuilder? key) => _$this._key = key; - _i10.MapBuilder? _attributeUpdates; - _i10.MapBuilder get attributeUpdates => + _i11.MapBuilder? _attributeUpdates; + _i11.MapBuilder get attributeUpdates => _$this._attributeUpdates ??= - new _i10.MapBuilder(); + new _i11.MapBuilder(); set attributeUpdates( - _i10.MapBuilder? + _i11.MapBuilder? attributeUpdates) => _$this._attributeUpdates = attributeUpdates; - _i10.MapBuilder? _expected; - _i10.MapBuilder get expected => + _i11.MapBuilder? _expected; + _i11.MapBuilder get expected => _$this._expected ??= - new _i10.MapBuilder(); - set expected(_i10.MapBuilder? expected) => + new _i11.MapBuilder(); + set expected(_i11.MapBuilder? expected) => _$this._expected = expected; _i6.ConditionalOperator? _conditionalOperator; @@ -165,23 +172,34 @@ class UpdateItemInputBuilder set conditionExpression(String? conditionExpression) => _$this._conditionExpression = conditionExpression; - _i10.MapBuilder? _expressionAttributeNames; - _i10.MapBuilder get expressionAttributeNames => + _i11.MapBuilder? _expressionAttributeNames; + _i11.MapBuilder get expressionAttributeNames => _$this._expressionAttributeNames ??= - new _i10.MapBuilder(); + new _i11.MapBuilder(); set expressionAttributeNames( - _i10.MapBuilder? expressionAttributeNames) => + _i11.MapBuilder? expressionAttributeNames) => _$this._expressionAttributeNames = expressionAttributeNames; - _i10.MapBuilder? _expressionAttributeValues; - _i10.MapBuilder get expressionAttributeValues => + _i11.MapBuilder? _expressionAttributeValues; + _i11.MapBuilder get expressionAttributeValues => _$this._expressionAttributeValues ??= - new _i10.MapBuilder(); + new _i11.MapBuilder(); set expressionAttributeValues( - _i10.MapBuilder? + _i11.MapBuilder? expressionAttributeValues) => _$this._expressionAttributeValues = expressionAttributeValues; + _i10.ReturnValuesOnConditionCheckFailure? + _returnValuesOnConditionCheckFailure; + _i10.ReturnValuesOnConditionCheckFailure? + get returnValuesOnConditionCheckFailure => + _$this._returnValuesOnConditionCheckFailure; + set returnValuesOnConditionCheckFailure( + _i10.ReturnValuesOnConditionCheckFailure? + returnValuesOnConditionCheckFailure) => + _$this._returnValuesOnConditionCheckFailure = + returnValuesOnConditionCheckFailure; + UpdateItemInputBuilder() { UpdateItemInput._init(this); } @@ -201,6 +219,8 @@ class UpdateItemInputBuilder _conditionExpression = $v.conditionExpression; _expressionAttributeNames = $v.expressionAttributeNames?.toBuilder(); _expressionAttributeValues = $v.expressionAttributeValues?.toBuilder(); + _returnValuesOnConditionCheckFailure = + $v.returnValuesOnConditionCheckFailure; _$v = null; } return this; @@ -237,7 +257,9 @@ class UpdateItemInputBuilder updateExpression: updateExpression, conditionExpression: conditionExpression, expressionAttributeNames: _expressionAttributeNames?.build(), - expressionAttributeValues: _expressionAttributeValues?.build()); + expressionAttributeValues: _expressionAttributeValues?.build(), + returnValuesOnConditionCheckFailure: + returnValuesOnConditionCheckFailure); } catch (_) { late String _$failedField; try { diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db_streams/model/attribute_value.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db_streams/model/attribute_value.dart index 3b5c11bd52..4d08107f72 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db_streams/model/attribute_value.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/dynamo_db_streams/model/attribute_value.dart @@ -18,30 +18,30 @@ import 'package:smithy/smithy.dart' as _i1; sealed class AttributeValue extends _i1.SmithyUnion { const AttributeValue._(); - const factory AttributeValue.s(String s) = AttributeValueS; + const factory AttributeValue.s(String s) = AttributeValueS$; - const factory AttributeValue.n(String n) = AttributeValueN; + const factory AttributeValue.n(String n) = AttributeValueN$; - const factory AttributeValue.b(_i2.Uint8List b) = AttributeValueB; + const factory AttributeValue.b(_i2.Uint8List b) = AttributeValueB$; - factory AttributeValue.ss(List ss) = AttributeValueSs; + factory AttributeValue.ss(List ss) = AttributeValueSs$; - factory AttributeValue.ns(List ns) = AttributeValueNs; + factory AttributeValue.ns(List ns) = AttributeValueNs$; - factory AttributeValue.bs(List<_i2.Uint8List> bs) = AttributeValueBs; + factory AttributeValue.bs(List<_i2.Uint8List> bs) = AttributeValueBs$; - factory AttributeValue.m(Map m) = AttributeValueM; + factory AttributeValue.m(Map m) = AttributeValueM$; - factory AttributeValue.l(List l) = AttributeValueL; + factory AttributeValue.l(List l) = AttributeValueL$; - const factory AttributeValue.null$(bool null$) = AttributeValueNull; + const factory AttributeValue.null$(bool null$) = AttributeValueNull$; - const factory AttributeValue.bool$(bool bool$) = AttributeValueBool; + const factory AttributeValue.bool$(bool bool$) = AttributeValueBool$; const factory AttributeValue.sdkUnknown( String name, Object value, - ) = AttributeValueSdkUnknown; + ) = AttributeValueSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ AttributeValueAwsJson10Serializer() @@ -170,8 +170,8 @@ sealed class AttributeValue extends _i1.SmithyUnion { } } -final class AttributeValueS extends AttributeValue { - const AttributeValueS(this.s) : super._(); +final class AttributeValueS$ extends AttributeValue { + const AttributeValueS$(this.s) : super._(); @override final String s; @@ -180,8 +180,8 @@ final class AttributeValueS extends AttributeValue { String get name => 'S'; } -final class AttributeValueN extends AttributeValue { - const AttributeValueN(this.n) : super._(); +final class AttributeValueN$ extends AttributeValue { + const AttributeValueN$(this.n) : super._(); @override final String n; @@ -190,8 +190,8 @@ final class AttributeValueN extends AttributeValue { String get name => 'N'; } -final class AttributeValueB extends AttributeValue { - const AttributeValueB(this.b) : super._(); +final class AttributeValueB$ extends AttributeValue { + const AttributeValueB$(this.b) : super._(); @override final _i2.Uint8List b; @@ -200,10 +200,10 @@ final class AttributeValueB extends AttributeValue { String get name => 'B'; } -final class AttributeValueSs extends AttributeValue { - AttributeValueSs(List ss) : this._(_i3.BuiltList(ss)); +final class AttributeValueSs$ extends AttributeValue { + AttributeValueSs$(List ss) : this._(_i3.BuiltList(ss)); - const AttributeValueSs._(this.ss) : super._(); + const AttributeValueSs$._(this.ss) : super._(); @override final _i3.BuiltList ss; @@ -212,10 +212,10 @@ final class AttributeValueSs extends AttributeValue { String get name => 'SS'; } -final class AttributeValueNs extends AttributeValue { - AttributeValueNs(List ns) : this._(_i3.BuiltList(ns)); +final class AttributeValueNs$ extends AttributeValue { + AttributeValueNs$(List ns) : this._(_i3.BuiltList(ns)); - const AttributeValueNs._(this.ns) : super._(); + const AttributeValueNs$._(this.ns) : super._(); @override final _i3.BuiltList ns; @@ -224,10 +224,10 @@ final class AttributeValueNs extends AttributeValue { String get name => 'NS'; } -final class AttributeValueBs extends AttributeValue { - AttributeValueBs(List<_i2.Uint8List> bs) : this._(_i3.BuiltList(bs)); +final class AttributeValueBs$ extends AttributeValue { + AttributeValueBs$(List<_i2.Uint8List> bs) : this._(_i3.BuiltList(bs)); - const AttributeValueBs._(this.bs) : super._(); + const AttributeValueBs$._(this.bs) : super._(); @override final _i3.BuiltList<_i2.Uint8List> bs; @@ -236,10 +236,10 @@ final class AttributeValueBs extends AttributeValue { String get name => 'BS'; } -final class AttributeValueM extends AttributeValue { - AttributeValueM(Map m) : this._(_i3.BuiltMap(m)); +final class AttributeValueM$ extends AttributeValue { + AttributeValueM$(Map m) : this._(_i3.BuiltMap(m)); - const AttributeValueM._(this.m) : super._(); + const AttributeValueM$._(this.m) : super._(); @override final _i3.BuiltMap m; @@ -248,10 +248,10 @@ final class AttributeValueM extends AttributeValue { String get name => 'M'; } -final class AttributeValueL extends AttributeValue { - AttributeValueL(List l) : this._(_i3.BuiltList(l)); +final class AttributeValueL$ extends AttributeValue { + AttributeValueL$(List l) : this._(_i3.BuiltList(l)); - const AttributeValueL._(this.l) : super._(); + const AttributeValueL$._(this.l) : super._(); @override final _i3.BuiltList l; @@ -260,8 +260,8 @@ final class AttributeValueL extends AttributeValue { String get name => 'L'; } -final class AttributeValueNull extends AttributeValue { - const AttributeValueNull(this.null$) : super._(); +final class AttributeValueNull$ extends AttributeValue { + const AttributeValueNull$(this.null$) : super._(); @override final bool null$; @@ -270,8 +270,8 @@ final class AttributeValueNull extends AttributeValue { String get name => 'NULL'; } -final class AttributeValueBool extends AttributeValue { - const AttributeValueBool(this.bool$) : super._(); +final class AttributeValueBool$ extends AttributeValue { + const AttributeValueBool$(this.bool$) : super._(); @override final bool bool$; @@ -280,8 +280,8 @@ final class AttributeValueBool extends AttributeValue { String get name => 'BOOL'; } -final class AttributeValueSdkUnknown extends AttributeValue { - const AttributeValueSdkUnknown( +final class AttributeValueSdkUnknown$ extends AttributeValue { + const AttributeValueSdkUnknown$( this.name, this.value, ) : super._(); @@ -300,16 +300,16 @@ class AttributeValueAwsJson10Serializer @override Iterable get types => const [ AttributeValue, - AttributeValueS, - AttributeValueN, - AttributeValueB, - AttributeValueSs, - AttributeValueNs, - AttributeValueBs, - AttributeValueM, - AttributeValueL, - AttributeValueNull, - AttributeValueBool, + AttributeValueS$, + AttributeValueN$, + AttributeValueB$, + AttributeValueSs$, + AttributeValueNs$, + AttributeValueBs$, + AttributeValueM$, + AttributeValueL$, + AttributeValueNull$, + AttributeValueBool$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -327,22 +327,22 @@ class AttributeValueAwsJson10Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'S': - return AttributeValueS((serializers.deserialize( + return AttributeValueS$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'N': - return AttributeValueN((serializers.deserialize( + return AttributeValueN$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'B': - return AttributeValueB((serializers.deserialize( + return AttributeValueB$((serializers.deserialize( value, specifiedType: const FullType(_i2.Uint8List), ) as _i2.Uint8List)); case 'SS': - return AttributeValueSs._((serializers.deserialize( + return AttributeValueSs$._((serializers.deserialize( value, specifiedType: const FullType( _i3.BuiltList, @@ -350,7 +350,7 @@ class AttributeValueAwsJson10Serializer ), ) as _i3.BuiltList)); case 'NS': - return AttributeValueNs._((serializers.deserialize( + return AttributeValueNs$._((serializers.deserialize( value, specifiedType: const FullType( _i3.BuiltList, @@ -358,7 +358,7 @@ class AttributeValueAwsJson10Serializer ), ) as _i3.BuiltList)); case 'BS': - return AttributeValueBs._((serializers.deserialize( + return AttributeValueBs$._((serializers.deserialize( value, specifiedType: const FullType( _i3.BuiltList, @@ -366,7 +366,7 @@ class AttributeValueAwsJson10Serializer ), ) as _i3.BuiltList<_i2.Uint8List>)); case 'M': - return AttributeValueM._((serializers.deserialize( + return AttributeValueM$._((serializers.deserialize( value, specifiedType: const FullType( _i3.BuiltMap, @@ -377,7 +377,7 @@ class AttributeValueAwsJson10Serializer ), ) as _i3.BuiltMap)); case 'L': - return AttributeValueL._((serializers.deserialize( + return AttributeValueL$._((serializers.deserialize( value, specifiedType: const FullType( _i3.BuiltList, @@ -385,12 +385,12 @@ class AttributeValueAwsJson10Serializer ), ) as _i3.BuiltList)); case 'NULL': - return AttributeValueNull((serializers.deserialize( + return AttributeValueNull$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); case 'BOOL': - return AttributeValueBool((serializers.deserialize( + return AttributeValueBool$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); @@ -410,40 +410,40 @@ class AttributeValueAwsJson10Serializer return [ object.name, switch (object) { - AttributeValueS(:final value) => serializers.serialize( + AttributeValueS$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - AttributeValueN(:final value) => serializers.serialize( + AttributeValueN$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - AttributeValueB(:final value) => serializers.serialize( + AttributeValueB$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Uint8List), ), - AttributeValueSs(:final value) => serializers.serialize( + AttributeValueSs$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i3.BuiltList, [FullType(String)], ), ), - AttributeValueNs(:final value) => serializers.serialize( + AttributeValueNs$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i3.BuiltList, [FullType(String)], ), ), - AttributeValueBs(:final value) => serializers.serialize( + AttributeValueBs$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i3.BuiltList, [FullType(_i2.Uint8List)], ), ), - AttributeValueM(:final value) => serializers.serialize( + AttributeValueM$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i3.BuiltMap, @@ -453,22 +453,22 @@ class AttributeValueAwsJson10Serializer ], ), ), - AttributeValueL(:final value) => serializers.serialize( + AttributeValueL$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i3.BuiltList, [FullType(AttributeValue)], ), ), - AttributeValueNull(:final value) => serializers.serialize( + AttributeValueNull$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - AttributeValueBool(:final value) => serializers.serialize( + AttributeValueBool$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - AttributeValueSdkUnknown(:final value) => value, + AttributeValueSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/common/serializers.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/common/serializers.dart index a20471dc4c..c9fd1ad375 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/common/serializers.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/common/serializers.dart @@ -3,17 +3,17 @@ library smoke_test.iam.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:built_collection/built_collection.dart' as _i336; +import 'package:built_collection/built_collection.dart' as _i338; import 'package:built_value/serializer.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smoke_test/src/sdk/src/iam/model/access_advisor_usage_granularity_type.dart' as _i99; -import 'package:smoke_test/src/sdk/src/iam/model/access_detail.dart' as _i139; +import 'package:smoke_test/src/sdk/src/iam/model/access_detail.dart' as _i141; import 'package:smoke_test/src/sdk/src/iam/model/access_key.dart' as _i21; import 'package:smoke_test/src/sdk/src/iam/model/access_key_last_used.dart' as _i103; import 'package:smoke_test/src/sdk/src/iam/model/access_key_metadata.dart' - as _i180; + as _i182; import 'package:smoke_test/src/sdk/src/iam/model/add_client_id_to_open_id_connect_provider_request.dart' as _i2; import 'package:smoke_test/src/sdk/src/iam/model/add_role_to_instance_profile_request.dart' @@ -21,7 +21,7 @@ import 'package:smoke_test/src/sdk/src/iam/model/add_role_to_instance_profile_re import 'package:smoke_test/src/sdk/src/iam/model/add_user_to_group_request.dart' as _i10; import 'package:smoke_test/src/sdk/src/iam/model/assignment_status_type.dart' - as _i260; + as _i262; import 'package:smoke_test/src/sdk/src/iam/model/attach_group_policy_request.dart' as _i11; import 'package:smoke_test/src/sdk/src/iam/model/attach_role_policy_request.dart' @@ -35,9 +35,9 @@ import 'package:smoke_test/src/sdk/src/iam/model/change_password_request.dart' as _i15; import 'package:smoke_test/src/sdk/src/iam/model/concurrent_modification_exception.dart' as _i24; -import 'package:smoke_test/src/sdk/src/iam/model/context_entry.dart' as _i278; +import 'package:smoke_test/src/sdk/src/iam/model/context_entry.dart' as _i280; import 'package:smoke_test/src/sdk/src/iam/model/context_key_type_enum.dart' - as _i277; + as _i279; import 'package:smoke_test/src/sdk/src/iam/model/create_access_key_request.dart' as _i19; import 'package:smoke_test/src/sdk/src/iam/model/create_access_key_response.dart' @@ -149,9 +149,9 @@ import 'package:smoke_test/src/sdk/src/iam/model/delete_user_request.dart' import 'package:smoke_test/src/sdk/src/iam/model/delete_virtual_mfa_device_request.dart' as _i88; import 'package:smoke_test/src/sdk/src/iam/model/deletion_task_failure_reason_type.dart' - as _i173; + as _i175; import 'package:smoke_test/src/sdk/src/iam/model/deletion_task_status_type.dart' - as _i171; + as _i173; import 'package:smoke_test/src/sdk/src/iam/model/detach_group_policy_request.dart' as _i89; import 'package:smoke_test/src/sdk/src/iam/model/detach_role_policy_request.dart' @@ -159,22 +159,22 @@ import 'package:smoke_test/src/sdk/src/iam/model/detach_role_policy_request.dart import 'package:smoke_test/src/sdk/src/iam/model/detach_user_policy_request.dart' as _i91; import 'package:smoke_test/src/sdk/src/iam/model/duplicate_certificate_exception.dart' - as _i334; + as _i336; import 'package:smoke_test/src/sdk/src/iam/model/duplicate_ssh_public_key_exception.dart' - as _i326; + as _i328; import 'package:smoke_test/src/sdk/src/iam/model/enable_mfa_device_request.dart' as _i92; -import 'package:smoke_test/src/sdk/src/iam/model/encoding_type.dart' as _i152; +import 'package:smoke_test/src/sdk/src/iam/model/encoding_type.dart' as _i154; import 'package:smoke_test/src/sdk/src/iam/model/entity_already_exists_exception.dart' as _i8; -import 'package:smoke_test/src/sdk/src/iam/model/entity_details.dart' as _i168; -import 'package:smoke_test/src/sdk/src/iam/model/entity_info.dart' as _i167; +import 'package:smoke_test/src/sdk/src/iam/model/entity_details.dart' as _i170; +import 'package:smoke_test/src/sdk/src/iam/model/entity_info.dart' as _i169; import 'package:smoke_test/src/sdk/src/iam/model/entity_temporarily_unmodifiable_exception.dart' as _i16; import 'package:smoke_test/src/sdk/src/iam/model/entity_type.dart' as _i105; -import 'package:smoke_test/src/sdk/src/iam/model/error_details.dart' as _i140; +import 'package:smoke_test/src/sdk/src/iam/model/error_details.dart' as _i142; import 'package:smoke_test/src/sdk/src/iam/model/evaluation_result.dart' - as _i287; + as _i289; import 'package:smoke_test/src/sdk/src/iam/model/generate_credential_report_response.dart' as _i95; import 'package:smoke_test/src/sdk/src/iam/model/generate_organizations_access_report_request.dart' @@ -221,281 +221,285 @@ import 'package:smoke_test/src/sdk/src/iam/model/get_login_profile_request.dart' as _i132; import 'package:smoke_test/src/sdk/src/iam/model/get_login_profile_response.dart' as _i133; -import 'package:smoke_test/src/sdk/src/iam/model/get_open_id_connect_provider_request.dart' +import 'package:smoke_test/src/sdk/src/iam/model/get_mfa_device_request.dart' as _i134; -import 'package:smoke_test/src/sdk/src/iam/model/get_open_id_connect_provider_response.dart' +import 'package:smoke_test/src/sdk/src/iam/model/get_mfa_device_response.dart' as _i135; -import 'package:smoke_test/src/sdk/src/iam/model/get_organizations_access_report_request.dart' +import 'package:smoke_test/src/sdk/src/iam/model/get_open_id_connect_provider_request.dart' + as _i136; +import 'package:smoke_test/src/sdk/src/iam/model/get_open_id_connect_provider_response.dart' as _i137; +import 'package:smoke_test/src/sdk/src/iam/model/get_organizations_access_report_request.dart' + as _i139; import 'package:smoke_test/src/sdk/src/iam/model/get_organizations_access_report_response.dart' - as _i141; + as _i143; import 'package:smoke_test/src/sdk/src/iam/model/get_policy_request.dart' - as _i142; + as _i144; import 'package:smoke_test/src/sdk/src/iam/model/get_policy_response.dart' - as _i143; + as _i145; import 'package:smoke_test/src/sdk/src/iam/model/get_policy_version_request.dart' - as _i144; + as _i146; import 'package:smoke_test/src/sdk/src/iam/model/get_policy_version_response.dart' - as _i145; + as _i147; import 'package:smoke_test/src/sdk/src/iam/model/get_role_policy_request.dart' - as _i148; + as _i150; import 'package:smoke_test/src/sdk/src/iam/model/get_role_policy_response.dart' - as _i149; + as _i151; import 'package:smoke_test/src/sdk/src/iam/model/get_role_request.dart' - as _i146; + as _i148; import 'package:smoke_test/src/sdk/src/iam/model/get_role_response.dart' - as _i147; + as _i149; import 'package:smoke_test/src/sdk/src/iam/model/get_saml_provider_request.dart' - as _i150; + as _i152; import 'package:smoke_test/src/sdk/src/iam/model/get_saml_provider_response.dart' - as _i151; + as _i153; import 'package:smoke_test/src/sdk/src/iam/model/get_server_certificate_request.dart' - as _i157; + as _i159; import 'package:smoke_test/src/sdk/src/iam/model/get_server_certificate_response.dart' - as _i160; + as _i162; import 'package:smoke_test/src/sdk/src/iam/model/get_service_last_accessed_details_request.dart' - as _i161; + as _i163; import 'package:smoke_test/src/sdk/src/iam/model/get_service_last_accessed_details_response.dart' - as _i164; + as _i166; import 'package:smoke_test/src/sdk/src/iam/model/get_service_last_accessed_details_with_entities_request.dart' - as _i165; + as _i167; import 'package:smoke_test/src/sdk/src/iam/model/get_service_last_accessed_details_with_entities_response.dart' - as _i169; + as _i171; import 'package:smoke_test/src/sdk/src/iam/model/get_service_linked_role_deletion_status_request.dart' - as _i170; + as _i172; import 'package:smoke_test/src/sdk/src/iam/model/get_service_linked_role_deletion_status_response.dart' - as _i174; + as _i176; import 'package:smoke_test/src/sdk/src/iam/model/get_ssh_public_key_request.dart' - as _i153; -import 'package:smoke_test/src/sdk/src/iam/model/get_ssh_public_key_response.dart' as _i155; +import 'package:smoke_test/src/sdk/src/iam/model/get_ssh_public_key_response.dart' + as _i157; import 'package:smoke_test/src/sdk/src/iam/model/get_user_policy_request.dart' - as _i177; + as _i179; import 'package:smoke_test/src/sdk/src/iam/model/get_user_policy_response.dart' - as _i178; + as _i180; import 'package:smoke_test/src/sdk/src/iam/model/get_user_request.dart' - as _i175; + as _i177; import 'package:smoke_test/src/sdk/src/iam/model/get_user_response.dart' - as _i176; + as _i178; import 'package:smoke_test/src/sdk/src/iam/model/global_endpoint_token_version.dart' - as _i275; + as _i277; import 'package:smoke_test/src/sdk/src/iam/model/group.dart' as _i26; import 'package:smoke_test/src/sdk/src/iam/model/group_detail.dart' as _i110; import 'package:smoke_test/src/sdk/src/iam/model/instance_profile.dart' as _i34; import 'package:smoke_test/src/sdk/src/iam/model/invalid_authentication_code_exception.dart' as _i93; import 'package:smoke_test/src/sdk/src/iam/model/invalid_certificate_exception.dart' - as _i335; + as _i337; import 'package:smoke_test/src/sdk/src/iam/model/invalid_input_exception.dart' as _i3; import 'package:smoke_test/src/sdk/src/iam/model/invalid_public_key_exception.dart' - as _i327; + as _i329; import 'package:smoke_test/src/sdk/src/iam/model/invalid_user_type_exception.dart' as _i17; -import 'package:smoke_test/src/sdk/src/iam/model/job_status_type.dart' as _i138; +import 'package:smoke_test/src/sdk/src/iam/model/job_status_type.dart' as _i140; import 'package:smoke_test/src/sdk/src/iam/model/key_pair_mismatch_exception.dart' - as _i330; + as _i332; import 'package:smoke_test/src/sdk/src/iam/model/limit_exceeded_exception.dart' as _i4; import 'package:smoke_test/src/sdk/src/iam/model/list_access_keys_request.dart' - as _i179; -import 'package:smoke_test/src/sdk/src/iam/model/list_access_keys_response.dart' as _i181; +import 'package:smoke_test/src/sdk/src/iam/model/list_access_keys_response.dart' + as _i183; import 'package:smoke_test/src/sdk/src/iam/model/list_account_aliases_request.dart' - as _i182; + as _i184; import 'package:smoke_test/src/sdk/src/iam/model/list_account_aliases_response.dart' - as _i183; + as _i185; import 'package:smoke_test/src/sdk/src/iam/model/list_attached_group_policies_request.dart' - as _i184; + as _i186; import 'package:smoke_test/src/sdk/src/iam/model/list_attached_group_policies_response.dart' - as _i185; + as _i187; import 'package:smoke_test/src/sdk/src/iam/model/list_attached_role_policies_request.dart' - as _i186; + as _i188; import 'package:smoke_test/src/sdk/src/iam/model/list_attached_role_policies_response.dart' - as _i187; + as _i189; import 'package:smoke_test/src/sdk/src/iam/model/list_attached_user_policies_request.dart' - as _i188; + as _i190; import 'package:smoke_test/src/sdk/src/iam/model/list_attached_user_policies_response.dart' - as _i189; -import 'package:smoke_test/src/sdk/src/iam/model/list_entities_for_policy_request.dart' as _i191; +import 'package:smoke_test/src/sdk/src/iam/model/list_entities_for_policy_request.dart' + as _i193; import 'package:smoke_test/src/sdk/src/iam/model/list_entities_for_policy_response.dart' - as _i195; + as _i197; import 'package:smoke_test/src/sdk/src/iam/model/list_group_policies_request.dart' - as _i196; + as _i198; import 'package:smoke_test/src/sdk/src/iam/model/list_group_policies_response.dart' - as _i197; + as _i199; import 'package:smoke_test/src/sdk/src/iam/model/list_groups_for_user_request.dart' - as _i200; + as _i202; import 'package:smoke_test/src/sdk/src/iam/model/list_groups_for_user_response.dart' - as _i201; + as _i203; import 'package:smoke_test/src/sdk/src/iam/model/list_groups_request.dart' - as _i198; + as _i200; import 'package:smoke_test/src/sdk/src/iam/model/list_groups_response.dart' - as _i199; + as _i201; import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profile_tags_request.dart' - as _i202; + as _i204; import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profile_tags_response.dart' - as _i203; + as _i205; import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profiles_for_role_request.dart' - as _i206; + as _i208; import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profiles_for_role_response.dart' - as _i207; + as _i209; import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profiles_request.dart' - as _i204; + as _i206; import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profiles_response.dart' - as _i205; + as _i207; import 'package:smoke_test/src/sdk/src/iam/model/list_mfa_device_tags_request.dart' - as _i208; + as _i210; import 'package:smoke_test/src/sdk/src/iam/model/list_mfa_device_tags_response.dart' - as _i209; + as _i211; import 'package:smoke_test/src/sdk/src/iam/model/list_mfa_devices_request.dart' - as _i210; -import 'package:smoke_test/src/sdk/src/iam/model/list_mfa_devices_response.dart' as _i212; +import 'package:smoke_test/src/sdk/src/iam/model/list_mfa_devices_response.dart' + as _i214; import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_provider_tags_request.dart' - as _i213; + as _i215; import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_provider_tags_response.dart' - as _i214; + as _i216; import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_providers_request.dart' - as _i215; -import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_providers_response.dart' as _i217; +import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_providers_response.dart' + as _i219; import 'package:smoke_test/src/sdk/src/iam/model/list_policies_granting_service_access_entry.dart' - as _i224; + as _i226; import 'package:smoke_test/src/sdk/src/iam/model/list_policies_granting_service_access_request.dart' - as _i221; + as _i223; import 'package:smoke_test/src/sdk/src/iam/model/list_policies_granting_service_access_response.dart' - as _i225; + as _i227; import 'package:smoke_test/src/sdk/src/iam/model/list_policies_request.dart' - as _i219; + as _i221; import 'package:smoke_test/src/sdk/src/iam/model/list_policies_response.dart' - as _i220; + as _i222; import 'package:smoke_test/src/sdk/src/iam/model/list_policy_tags_request.dart' - as _i226; + as _i228; import 'package:smoke_test/src/sdk/src/iam/model/list_policy_tags_response.dart' - as _i227; + as _i229; import 'package:smoke_test/src/sdk/src/iam/model/list_policy_versions_request.dart' - as _i228; + as _i230; import 'package:smoke_test/src/sdk/src/iam/model/list_policy_versions_response.dart' - as _i229; + as _i231; import 'package:smoke_test/src/sdk/src/iam/model/list_role_policies_request.dart' - as _i230; + as _i232; import 'package:smoke_test/src/sdk/src/iam/model/list_role_policies_response.dart' - as _i231; + as _i233; import 'package:smoke_test/src/sdk/src/iam/model/list_role_tags_request.dart' - as _i232; + as _i234; import 'package:smoke_test/src/sdk/src/iam/model/list_role_tags_response.dart' - as _i233; + as _i235; import 'package:smoke_test/src/sdk/src/iam/model/list_roles_request.dart' - as _i234; + as _i236; import 'package:smoke_test/src/sdk/src/iam/model/list_roles_response.dart' - as _i235; + as _i237; import 'package:smoke_test/src/sdk/src/iam/model/list_saml_provider_tags_request.dart' - as _i236; + as _i238; import 'package:smoke_test/src/sdk/src/iam/model/list_saml_provider_tags_response.dart' - as _i237; + as _i239; import 'package:smoke_test/src/sdk/src/iam/model/list_saml_providers_request.dart' - as _i238; -import 'package:smoke_test/src/sdk/src/iam/model/list_saml_providers_response.dart' as _i240; +import 'package:smoke_test/src/sdk/src/iam/model/list_saml_providers_response.dart' + as _i242; import 'package:smoke_test/src/sdk/src/iam/model/list_server_certificate_tags_request.dart' - as _i244; + as _i246; import 'package:smoke_test/src/sdk/src/iam/model/list_server_certificate_tags_response.dart' - as _i245; + as _i247; import 'package:smoke_test/src/sdk/src/iam/model/list_server_certificates_request.dart' - as _i246; + as _i248; import 'package:smoke_test/src/sdk/src/iam/model/list_server_certificates_response.dart' - as _i247; + as _i249; import 'package:smoke_test/src/sdk/src/iam/model/list_service_specific_credentials_request.dart' - as _i248; -import 'package:smoke_test/src/sdk/src/iam/model/list_service_specific_credentials_response.dart' as _i250; +import 'package:smoke_test/src/sdk/src/iam/model/list_service_specific_credentials_response.dart' + as _i252; import 'package:smoke_test/src/sdk/src/iam/model/list_signing_certificates_request.dart' - as _i251; -import 'package:smoke_test/src/sdk/src/iam/model/list_signing_certificates_response.dart' as _i253; +import 'package:smoke_test/src/sdk/src/iam/model/list_signing_certificates_response.dart' + as _i255; import 'package:smoke_test/src/sdk/src/iam/model/list_ssh_public_keys_request.dart' - as _i241; -import 'package:smoke_test/src/sdk/src/iam/model/list_ssh_public_keys_response.dart' as _i243; +import 'package:smoke_test/src/sdk/src/iam/model/list_ssh_public_keys_response.dart' + as _i245; import 'package:smoke_test/src/sdk/src/iam/model/list_user_policies_request.dart' - as _i254; + as _i256; import 'package:smoke_test/src/sdk/src/iam/model/list_user_policies_response.dart' - as _i255; + as _i257; import 'package:smoke_test/src/sdk/src/iam/model/list_user_tags_request.dart' - as _i256; + as _i258; import 'package:smoke_test/src/sdk/src/iam/model/list_user_tags_response.dart' - as _i257; + as _i259; import 'package:smoke_test/src/sdk/src/iam/model/list_users_request.dart' - as _i258; + as _i260; import 'package:smoke_test/src/sdk/src/iam/model/list_users_response.dart' - as _i259; -import 'package:smoke_test/src/sdk/src/iam/model/list_virtual_mfa_devices_request.dart' as _i261; +import 'package:smoke_test/src/sdk/src/iam/model/list_virtual_mfa_devices_request.dart' + as _i263; import 'package:smoke_test/src/sdk/src/iam/model/list_virtual_mfa_devices_response.dart' - as _i262; + as _i264; import 'package:smoke_test/src/sdk/src/iam/model/login_profile.dart' as _i37; import 'package:smoke_test/src/sdk/src/iam/model/malformed_certificate_exception.dart' - as _i331; + as _i333; import 'package:smoke_test/src/sdk/src/iam/model/malformed_policy_document_exception.dart' as _i44; import 'package:smoke_test/src/sdk/src/iam/model/managed_policy_detail.dart' as _i112; -import 'package:smoke_test/src/sdk/src/iam/model/mfa_device.dart' as _i211; +import 'package:smoke_test/src/sdk/src/iam/model/mfa_device.dart' as _i213; import 'package:smoke_test/src/sdk/src/iam/model/no_such_entity_exception.dart' as _i5; import 'package:smoke_test/src/sdk/src/iam/model/open_id_connect_provider_list_entry.dart' - as _i216; + as _i218; import 'package:smoke_test/src/sdk/src/iam/model/organizations_decision_detail.dart' - as _i284; + as _i286; import 'package:smoke_test/src/sdk/src/iam/model/password_policy.dart' as _i114; import 'package:smoke_test/src/sdk/src/iam/model/password_policy_violation_exception.dart' as _i18; import 'package:smoke_test/src/sdk/src/iam/model/permissions_boundary_attachment_type.dart' as _i30; import 'package:smoke_test/src/sdk/src/iam/model/permissions_boundary_decision_detail.dart' - as _i285; + as _i287; import 'package:smoke_test/src/sdk/src/iam/model/policy.dart' as _i42; import 'package:smoke_test/src/sdk/src/iam/model/policy_detail.dart' as _i107; import 'package:smoke_test/src/sdk/src/iam/model/policy_evaluation_decision_type.dart' - as _i280; + as _i282; import 'package:smoke_test/src/sdk/src/iam/model/policy_evaluation_exception.dart' - as _i289; + as _i291; import 'package:smoke_test/src/sdk/src/iam/model/policy_granting_service_access.dart' - as _i223; -import 'package:smoke_test/src/sdk/src/iam/model/policy_group.dart' as _i192; + as _i225; +import 'package:smoke_test/src/sdk/src/iam/model/policy_group.dart' as _i194; import 'package:smoke_test/src/sdk/src/iam/model/policy_not_attachable_exception.dart' as _i12; import 'package:smoke_test/src/sdk/src/iam/model/policy_owner_entity_type.dart' - as _i166; -import 'package:smoke_test/src/sdk/src/iam/model/policy_role.dart' as _i194; + as _i168; +import 'package:smoke_test/src/sdk/src/iam/model/policy_role.dart' as _i196; import 'package:smoke_test/src/sdk/src/iam/model/policy_scope_type.dart' - as _i218; + as _i220; import 'package:smoke_test/src/sdk/src/iam/model/policy_source_type.dart' - as _i281; -import 'package:smoke_test/src/sdk/src/iam/model/policy_type.dart' as _i222; + as _i283; +import 'package:smoke_test/src/sdk/src/iam/model/policy_type.dart' as _i224; import 'package:smoke_test/src/sdk/src/iam/model/policy_usage_type.dart' - as _i190; -import 'package:smoke_test/src/sdk/src/iam/model/policy_user.dart' as _i193; + as _i192; +import 'package:smoke_test/src/sdk/src/iam/model/policy_user.dart' as _i195; import 'package:smoke_test/src/sdk/src/iam/model/policy_version.dart' as _i46; -import 'package:smoke_test/src/sdk/src/iam/model/position.dart' as _i282; +import 'package:smoke_test/src/sdk/src/iam/model/position.dart' as _i284; import 'package:smoke_test/src/sdk/src/iam/model/put_group_policy_request.dart' - as _i263; + as _i265; import 'package:smoke_test/src/sdk/src/iam/model/put_role_permissions_boundary_request.dart' - as _i264; + as _i266; import 'package:smoke_test/src/sdk/src/iam/model/put_role_policy_request.dart' - as _i265; + as _i267; import 'package:smoke_test/src/sdk/src/iam/model/put_user_permissions_boundary_request.dart' - as _i266; + as _i268; import 'package:smoke_test/src/sdk/src/iam/model/put_user_policy_request.dart' - as _i267; + as _i269; import 'package:smoke_test/src/sdk/src/iam/model/remove_client_id_from_open_id_connect_provider_request.dart' - as _i268; + as _i270; import 'package:smoke_test/src/sdk/src/iam/model/remove_role_from_instance_profile_request.dart' - as _i269; + as _i271; import 'package:smoke_test/src/sdk/src/iam/model/remove_user_from_group_request.dart' - as _i270; + as _i272; import 'package:smoke_test/src/sdk/src/iam/model/report_format_type.dart' as _i121; import 'package:smoke_test/src/sdk/src/iam/model/report_generation_limit_exceeded_exception.dart' @@ -503,138 +507,138 @@ import 'package:smoke_test/src/sdk/src/iam/model/report_generation_limit_exceede import 'package:smoke_test/src/sdk/src/iam/model/report_state_type.dart' as _i94; import 'package:smoke_test/src/sdk/src/iam/model/reset_service_specific_credential_request.dart' - as _i271; + as _i273; import 'package:smoke_test/src/sdk/src/iam/model/reset_service_specific_credential_response.dart' - as _i272; + as _i274; import 'package:smoke_test/src/sdk/src/iam/model/resource_specific_result.dart' - as _i286; + as _i288; import 'package:smoke_test/src/sdk/src/iam/model/resync_mfa_device_request.dart' - as _i273; + as _i275; import 'package:smoke_test/src/sdk/src/iam/model/role.dart' as _i33; import 'package:smoke_test/src/sdk/src/iam/model/role_detail.dart' as _i111; import 'package:smoke_test/src/sdk/src/iam/model/role_last_used.dart' as _i32; -import 'package:smoke_test/src/sdk/src/iam/model/role_usage_type.dart' as _i172; +import 'package:smoke_test/src/sdk/src/iam/model/role_usage_type.dart' as _i174; import 'package:smoke_test/src/sdk/src/iam/model/saml_provider_list_entry.dart' - as _i239; + as _i241; import 'package:smoke_test/src/sdk/src/iam/model/server_certificate.dart' - as _i159; + as _i161; import 'package:smoke_test/src/sdk/src/iam/model/server_certificate_metadata.dart' - as _i158; + as _i160; import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' as _i6; import 'package:smoke_test/src/sdk/src/iam/model/service_last_accessed.dart' - as _i163; + as _i165; import 'package:smoke_test/src/sdk/src/iam/model/service_not_supported_exception.dart' as _i57; import 'package:smoke_test/src/sdk/src/iam/model/service_specific_credential.dart' as _i55; import 'package:smoke_test/src/sdk/src/iam/model/service_specific_credential_metadata.dart' - as _i249; + as _i251; import 'package:smoke_test/src/sdk/src/iam/model/set_default_policy_version_request.dart' - as _i274; -import 'package:smoke_test/src/sdk/src/iam/model/set_security_token_service_preferences_request.dart' as _i276; +import 'package:smoke_test/src/sdk/src/iam/model/set_security_token_service_preferences_request.dart' + as _i278; import 'package:smoke_test/src/sdk/src/iam/model/signing_certificate.dart' - as _i252; + as _i254; import 'package:smoke_test/src/sdk/src/iam/model/simulate_custom_policy_request.dart' - as _i279; + as _i281; import 'package:smoke_test/src/sdk/src/iam/model/simulate_policy_response.dart' - as _i288; -import 'package:smoke_test/src/sdk/src/iam/model/simulate_principal_policy_request.dart' as _i290; -import 'package:smoke_test/src/sdk/src/iam/model/sort_key_type.dart' as _i136; -import 'package:smoke_test/src/sdk/src/iam/model/ssh_public_key.dart' as _i154; +import 'package:smoke_test/src/sdk/src/iam/model/simulate_principal_policy_request.dart' + as _i292; +import 'package:smoke_test/src/sdk/src/iam/model/sort_key_type.dart' as _i138; +import 'package:smoke_test/src/sdk/src/iam/model/ssh_public_key.dart' as _i156; import 'package:smoke_test/src/sdk/src/iam/model/ssh_public_key_metadata.dart' - as _i242; -import 'package:smoke_test/src/sdk/src/iam/model/statement.dart' as _i283; + as _i244; +import 'package:smoke_test/src/sdk/src/iam/model/statement.dart' as _i285; import 'package:smoke_test/src/sdk/src/iam/model/status_type.dart' as _i20; import 'package:smoke_test/src/sdk/src/iam/model/summary_key_type.dart' as _i116; import 'package:smoke_test/src/sdk/src/iam/model/tag.dart' as _i28; import 'package:smoke_test/src/sdk/src/iam/model/tag_instance_profile_request.dart' - as _i291; + as _i293; import 'package:smoke_test/src/sdk/src/iam/model/tag_mfa_device_request.dart' - as _i292; + as _i294; import 'package:smoke_test/src/sdk/src/iam/model/tag_open_id_connect_provider_request.dart' - as _i293; + as _i295; import 'package:smoke_test/src/sdk/src/iam/model/tag_policy_request.dart' - as _i294; + as _i296; import 'package:smoke_test/src/sdk/src/iam/model/tag_role_request.dart' - as _i295; + as _i297; import 'package:smoke_test/src/sdk/src/iam/model/tag_saml_provider_request.dart' - as _i296; + as _i298; import 'package:smoke_test/src/sdk/src/iam/model/tag_server_certificate_request.dart' - as _i297; + as _i299; import 'package:smoke_test/src/sdk/src/iam/model/tag_user_request.dart' - as _i298; + as _i300; import 'package:smoke_test/src/sdk/src/iam/model/tracked_action_last_accessed.dart' - as _i162; + as _i164; import 'package:smoke_test/src/sdk/src/iam/model/unmodifiable_entity_exception.dart' as _i9; import 'package:smoke_test/src/sdk/src/iam/model/unrecognized_public_key_encoding_exception.dart' - as _i156; + as _i158; import 'package:smoke_test/src/sdk/src/iam/model/untag_instance_profile_request.dart' - as _i299; + as _i301; import 'package:smoke_test/src/sdk/src/iam/model/untag_mfa_device_request.dart' - as _i300; + as _i302; import 'package:smoke_test/src/sdk/src/iam/model/untag_open_id_connect_provider_request.dart' - as _i301; + as _i303; import 'package:smoke_test/src/sdk/src/iam/model/untag_policy_request.dart' - as _i302; + as _i304; import 'package:smoke_test/src/sdk/src/iam/model/untag_role_request.dart' - as _i303; + as _i305; import 'package:smoke_test/src/sdk/src/iam/model/untag_saml_provider_request.dart' - as _i304; + as _i306; import 'package:smoke_test/src/sdk/src/iam/model/untag_server_certificate_request.dart' - as _i305; + as _i307; import 'package:smoke_test/src/sdk/src/iam/model/untag_user_request.dart' - as _i306; + as _i308; import 'package:smoke_test/src/sdk/src/iam/model/update_access_key_request.dart' - as _i307; + as _i309; import 'package:smoke_test/src/sdk/src/iam/model/update_account_password_policy_request.dart' - as _i308; + as _i310; import 'package:smoke_test/src/sdk/src/iam/model/update_assume_role_policy_request.dart' - as _i309; + as _i311; import 'package:smoke_test/src/sdk/src/iam/model/update_group_request.dart' - as _i310; + as _i312; import 'package:smoke_test/src/sdk/src/iam/model/update_login_profile_request.dart' - as _i311; + as _i313; import 'package:smoke_test/src/sdk/src/iam/model/update_open_id_connect_provider_thumbprint_request.dart' - as _i312; + as _i314; import 'package:smoke_test/src/sdk/src/iam/model/update_role_description_request.dart' - as _i315; + as _i317; import 'package:smoke_test/src/sdk/src/iam/model/update_role_description_response.dart' - as _i316; + as _i318; import 'package:smoke_test/src/sdk/src/iam/model/update_role_request.dart' - as _i313; + as _i315; import 'package:smoke_test/src/sdk/src/iam/model/update_role_response.dart' - as _i314; + as _i316; import 'package:smoke_test/src/sdk/src/iam/model/update_saml_provider_request.dart' - as _i317; + as _i319; import 'package:smoke_test/src/sdk/src/iam/model/update_saml_provider_response.dart' - as _i318; -import 'package:smoke_test/src/sdk/src/iam/model/update_server_certificate_request.dart' as _i320; +import 'package:smoke_test/src/sdk/src/iam/model/update_server_certificate_request.dart' + as _i322; import 'package:smoke_test/src/sdk/src/iam/model/update_service_specific_credential_request.dart' - as _i321; + as _i323; import 'package:smoke_test/src/sdk/src/iam/model/update_signing_certificate_request.dart' - as _i322; + as _i324; import 'package:smoke_test/src/sdk/src/iam/model/update_ssh_public_key_request.dart' - as _i319; + as _i321; import 'package:smoke_test/src/sdk/src/iam/model/update_user_request.dart' - as _i323; + as _i325; import 'package:smoke_test/src/sdk/src/iam/model/upload_server_certificate_request.dart' - as _i328; + as _i330; import 'package:smoke_test/src/sdk/src/iam/model/upload_server_certificate_response.dart' - as _i329; + as _i331; import 'package:smoke_test/src/sdk/src/iam/model/upload_signing_certificate_request.dart' - as _i332; + as _i334; import 'package:smoke_test/src/sdk/src/iam/model/upload_signing_certificate_response.dart' - as _i333; + as _i335; import 'package:smoke_test/src/sdk/src/iam/model/upload_ssh_public_key_request.dart' - as _i324; + as _i326; import 'package:smoke_test/src/sdk/src/iam/model/upload_ssh_public_key_response.dart' - as _i325; + as _i327; import 'package:smoke_test/src/sdk/src/iam/model/user.dart' as _i59; import 'package:smoke_test/src/sdk/src/iam/model/user_detail.dart' as _i109; import 'package:smoke_test/src/sdk/src/iam/model/virtual_mfa_device.dart' @@ -773,374 +777,383 @@ const List<_i1.SmithySerializer> serializers = [ ..._i131.GetInstanceProfileResponse.serializers, ..._i132.GetLoginProfileRequest.serializers, ..._i133.GetLoginProfileResponse.serializers, - ..._i134.GetOpenIdConnectProviderRequest.serializers, - ..._i135.GetOpenIdConnectProviderResponse.serializers, - ..._i136.SortKeyType.serializers, - ..._i137.GetOrganizationsAccessReportRequest.serializers, - ..._i138.JobStatusType.serializers, - ..._i139.AccessDetail.serializers, - ..._i140.ErrorDetails.serializers, - ..._i141.GetOrganizationsAccessReportResponse.serializers, - ..._i142.GetPolicyRequest.serializers, - ..._i143.GetPolicyResponse.serializers, - ..._i144.GetPolicyVersionRequest.serializers, - ..._i145.GetPolicyVersionResponse.serializers, - ..._i146.GetRoleRequest.serializers, - ..._i147.GetRoleResponse.serializers, - ..._i148.GetRolePolicyRequest.serializers, - ..._i149.GetRolePolicyResponse.serializers, - ..._i150.GetSamlProviderRequest.serializers, - ..._i151.GetSamlProviderResponse.serializers, - ..._i152.EncodingType.serializers, - ..._i153.GetSshPublicKeyRequest.serializers, - ..._i154.SshPublicKey.serializers, - ..._i155.GetSshPublicKeyResponse.serializers, - ..._i156.UnrecognizedPublicKeyEncodingException.serializers, - ..._i157.GetServerCertificateRequest.serializers, - ..._i158.ServerCertificateMetadata.serializers, - ..._i159.ServerCertificate.serializers, - ..._i160.GetServerCertificateResponse.serializers, - ..._i161.GetServiceLastAccessedDetailsRequest.serializers, - ..._i162.TrackedActionLastAccessed.serializers, - ..._i163.ServiceLastAccessed.serializers, - ..._i164.GetServiceLastAccessedDetailsResponse.serializers, - ..._i165.GetServiceLastAccessedDetailsWithEntitiesRequest.serializers, - ..._i166.PolicyOwnerEntityType.serializers, - ..._i167.EntityInfo.serializers, - ..._i168.EntityDetails.serializers, - ..._i169.GetServiceLastAccessedDetailsWithEntitiesResponse.serializers, - ..._i170.GetServiceLinkedRoleDeletionStatusRequest.serializers, - ..._i171.DeletionTaskStatusType.serializers, - ..._i172.RoleUsageType.serializers, - ..._i173.DeletionTaskFailureReasonType.serializers, - ..._i174.GetServiceLinkedRoleDeletionStatusResponse.serializers, - ..._i175.GetUserRequest.serializers, - ..._i176.GetUserResponse.serializers, - ..._i177.GetUserPolicyRequest.serializers, - ..._i178.GetUserPolicyResponse.serializers, - ..._i179.ListAccessKeysRequest.serializers, - ..._i180.AccessKeyMetadata.serializers, - ..._i181.ListAccessKeysResponse.serializers, - ..._i182.ListAccountAliasesRequest.serializers, - ..._i183.ListAccountAliasesResponse.serializers, - ..._i184.ListAttachedGroupPoliciesRequest.serializers, - ..._i185.ListAttachedGroupPoliciesResponse.serializers, - ..._i186.ListAttachedRolePoliciesRequest.serializers, - ..._i187.ListAttachedRolePoliciesResponse.serializers, - ..._i188.ListAttachedUserPoliciesRequest.serializers, - ..._i189.ListAttachedUserPoliciesResponse.serializers, - ..._i190.PolicyUsageType.serializers, - ..._i191.ListEntitiesForPolicyRequest.serializers, - ..._i192.PolicyGroup.serializers, - ..._i193.PolicyUser.serializers, - ..._i194.PolicyRole.serializers, - ..._i195.ListEntitiesForPolicyResponse.serializers, - ..._i196.ListGroupPoliciesRequest.serializers, - ..._i197.ListGroupPoliciesResponse.serializers, - ..._i198.ListGroupsRequest.serializers, - ..._i199.ListGroupsResponse.serializers, - ..._i200.ListGroupsForUserRequest.serializers, - ..._i201.ListGroupsForUserResponse.serializers, - ..._i202.ListInstanceProfileTagsRequest.serializers, - ..._i203.ListInstanceProfileTagsResponse.serializers, - ..._i204.ListInstanceProfilesRequest.serializers, - ..._i205.ListInstanceProfilesResponse.serializers, - ..._i206.ListInstanceProfilesForRoleRequest.serializers, - ..._i207.ListInstanceProfilesForRoleResponse.serializers, - ..._i208.ListMfaDeviceTagsRequest.serializers, - ..._i209.ListMfaDeviceTagsResponse.serializers, - ..._i210.ListMfaDevicesRequest.serializers, - ..._i211.MfaDevice.serializers, - ..._i212.ListMfaDevicesResponse.serializers, - ..._i213.ListOpenIdConnectProviderTagsRequest.serializers, - ..._i214.ListOpenIdConnectProviderTagsResponse.serializers, - ..._i215.ListOpenIdConnectProvidersRequest.serializers, - ..._i216.OpenIdConnectProviderListEntry.serializers, - ..._i217.ListOpenIdConnectProvidersResponse.serializers, - ..._i218.PolicyScopeType.serializers, - ..._i219.ListPoliciesRequest.serializers, - ..._i220.ListPoliciesResponse.serializers, - ..._i221.ListPoliciesGrantingServiceAccessRequest.serializers, - ..._i222.PolicyType.serializers, - ..._i223.PolicyGrantingServiceAccess.serializers, - ..._i224.ListPoliciesGrantingServiceAccessEntry.serializers, - ..._i225.ListPoliciesGrantingServiceAccessResponse.serializers, - ..._i226.ListPolicyTagsRequest.serializers, - ..._i227.ListPolicyTagsResponse.serializers, - ..._i228.ListPolicyVersionsRequest.serializers, - ..._i229.ListPolicyVersionsResponse.serializers, - ..._i230.ListRolePoliciesRequest.serializers, - ..._i231.ListRolePoliciesResponse.serializers, - ..._i232.ListRoleTagsRequest.serializers, - ..._i233.ListRoleTagsResponse.serializers, - ..._i234.ListRolesRequest.serializers, - ..._i235.ListRolesResponse.serializers, - ..._i236.ListSamlProviderTagsRequest.serializers, - ..._i237.ListSamlProviderTagsResponse.serializers, - ..._i238.ListSamlProvidersRequest.serializers, - ..._i239.SamlProviderListEntry.serializers, - ..._i240.ListSamlProvidersResponse.serializers, - ..._i241.ListSshPublicKeysRequest.serializers, - ..._i242.SshPublicKeyMetadata.serializers, - ..._i243.ListSshPublicKeysResponse.serializers, - ..._i244.ListServerCertificateTagsRequest.serializers, - ..._i245.ListServerCertificateTagsResponse.serializers, - ..._i246.ListServerCertificatesRequest.serializers, - ..._i247.ListServerCertificatesResponse.serializers, - ..._i248.ListServiceSpecificCredentialsRequest.serializers, - ..._i249.ServiceSpecificCredentialMetadata.serializers, - ..._i250.ListServiceSpecificCredentialsResponse.serializers, - ..._i251.ListSigningCertificatesRequest.serializers, - ..._i252.SigningCertificate.serializers, - ..._i253.ListSigningCertificatesResponse.serializers, - ..._i254.ListUserPoliciesRequest.serializers, - ..._i255.ListUserPoliciesResponse.serializers, - ..._i256.ListUserTagsRequest.serializers, - ..._i257.ListUserTagsResponse.serializers, - ..._i258.ListUsersRequest.serializers, - ..._i259.ListUsersResponse.serializers, - ..._i260.AssignmentStatusType.serializers, - ..._i261.ListVirtualMfaDevicesRequest.serializers, - ..._i262.ListVirtualMfaDevicesResponse.serializers, - ..._i263.PutGroupPolicyRequest.serializers, - ..._i264.PutRolePermissionsBoundaryRequest.serializers, - ..._i265.PutRolePolicyRequest.serializers, - ..._i266.PutUserPermissionsBoundaryRequest.serializers, - ..._i267.PutUserPolicyRequest.serializers, - ..._i268.RemoveClientIdFromOpenIdConnectProviderRequest.serializers, - ..._i269.RemoveRoleFromInstanceProfileRequest.serializers, - ..._i270.RemoveUserFromGroupRequest.serializers, - ..._i271.ResetServiceSpecificCredentialRequest.serializers, - ..._i272.ResetServiceSpecificCredentialResponse.serializers, - ..._i273.ResyncMfaDeviceRequest.serializers, - ..._i274.SetDefaultPolicyVersionRequest.serializers, - ..._i275.GlobalEndpointTokenVersion.serializers, - ..._i276.SetSecurityTokenServicePreferencesRequest.serializers, - ..._i277.ContextKeyTypeEnum.serializers, - ..._i278.ContextEntry.serializers, - ..._i279.SimulateCustomPolicyRequest.serializers, - ..._i280.PolicyEvaluationDecisionType.serializers, - ..._i281.PolicySourceType.serializers, - ..._i282.Position.serializers, - ..._i283.Statement.serializers, - ..._i284.OrganizationsDecisionDetail.serializers, - ..._i285.PermissionsBoundaryDecisionDetail.serializers, - ..._i286.ResourceSpecificResult.serializers, - ..._i287.EvaluationResult.serializers, - ..._i288.SimulatePolicyResponse.serializers, - ..._i289.PolicyEvaluationException.serializers, - ..._i290.SimulatePrincipalPolicyRequest.serializers, - ..._i291.TagInstanceProfileRequest.serializers, - ..._i292.TagMfaDeviceRequest.serializers, - ..._i293.TagOpenIdConnectProviderRequest.serializers, - ..._i294.TagPolicyRequest.serializers, - ..._i295.TagRoleRequest.serializers, - ..._i296.TagSamlProviderRequest.serializers, - ..._i297.TagServerCertificateRequest.serializers, - ..._i298.TagUserRequest.serializers, - ..._i299.UntagInstanceProfileRequest.serializers, - ..._i300.UntagMfaDeviceRequest.serializers, - ..._i301.UntagOpenIdConnectProviderRequest.serializers, - ..._i302.UntagPolicyRequest.serializers, - ..._i303.UntagRoleRequest.serializers, - ..._i304.UntagSamlProviderRequest.serializers, - ..._i305.UntagServerCertificateRequest.serializers, - ..._i306.UntagUserRequest.serializers, - ..._i307.UpdateAccessKeyRequest.serializers, - ..._i308.UpdateAccountPasswordPolicyRequest.serializers, - ..._i309.UpdateAssumeRolePolicyRequest.serializers, - ..._i310.UpdateGroupRequest.serializers, - ..._i311.UpdateLoginProfileRequest.serializers, - ..._i312.UpdateOpenIdConnectProviderThumbprintRequest.serializers, - ..._i313.UpdateRoleRequest.serializers, - ..._i314.UpdateRoleResponse.serializers, - ..._i315.UpdateRoleDescriptionRequest.serializers, - ..._i316.UpdateRoleDescriptionResponse.serializers, - ..._i317.UpdateSamlProviderRequest.serializers, - ..._i318.UpdateSamlProviderResponse.serializers, - ..._i319.UpdateSshPublicKeyRequest.serializers, - ..._i320.UpdateServerCertificateRequest.serializers, - ..._i321.UpdateServiceSpecificCredentialRequest.serializers, - ..._i322.UpdateSigningCertificateRequest.serializers, - ..._i323.UpdateUserRequest.serializers, - ..._i324.UploadSshPublicKeyRequest.serializers, - ..._i325.UploadSshPublicKeyResponse.serializers, - ..._i326.DuplicateSshPublicKeyException.serializers, - ..._i327.InvalidPublicKeyException.serializers, - ..._i328.UploadServerCertificateRequest.serializers, - ..._i329.UploadServerCertificateResponse.serializers, - ..._i330.KeyPairMismatchException.serializers, - ..._i331.MalformedCertificateException.serializers, - ..._i332.UploadSigningCertificateRequest.serializers, - ..._i333.UploadSigningCertificateResponse.serializers, - ..._i334.DuplicateCertificateException.serializers, - ..._i335.InvalidCertificateException.serializers, + ..._i134.GetMfaDeviceRequest.serializers, + ..._i135.GetMfaDeviceResponse.serializers, + ..._i136.GetOpenIdConnectProviderRequest.serializers, + ..._i137.GetOpenIdConnectProviderResponse.serializers, + ..._i138.SortKeyType.serializers, + ..._i139.GetOrganizationsAccessReportRequest.serializers, + ..._i140.JobStatusType.serializers, + ..._i141.AccessDetail.serializers, + ..._i142.ErrorDetails.serializers, + ..._i143.GetOrganizationsAccessReportResponse.serializers, + ..._i144.GetPolicyRequest.serializers, + ..._i145.GetPolicyResponse.serializers, + ..._i146.GetPolicyVersionRequest.serializers, + ..._i147.GetPolicyVersionResponse.serializers, + ..._i148.GetRoleRequest.serializers, + ..._i149.GetRoleResponse.serializers, + ..._i150.GetRolePolicyRequest.serializers, + ..._i151.GetRolePolicyResponse.serializers, + ..._i152.GetSamlProviderRequest.serializers, + ..._i153.GetSamlProviderResponse.serializers, + ..._i154.EncodingType.serializers, + ..._i155.GetSshPublicKeyRequest.serializers, + ..._i156.SshPublicKey.serializers, + ..._i157.GetSshPublicKeyResponse.serializers, + ..._i158.UnrecognizedPublicKeyEncodingException.serializers, + ..._i159.GetServerCertificateRequest.serializers, + ..._i160.ServerCertificateMetadata.serializers, + ..._i161.ServerCertificate.serializers, + ..._i162.GetServerCertificateResponse.serializers, + ..._i163.GetServiceLastAccessedDetailsRequest.serializers, + ..._i164.TrackedActionLastAccessed.serializers, + ..._i165.ServiceLastAccessed.serializers, + ..._i166.GetServiceLastAccessedDetailsResponse.serializers, + ..._i167.GetServiceLastAccessedDetailsWithEntitiesRequest.serializers, + ..._i168.PolicyOwnerEntityType.serializers, + ..._i169.EntityInfo.serializers, + ..._i170.EntityDetails.serializers, + ..._i171.GetServiceLastAccessedDetailsWithEntitiesResponse.serializers, + ..._i172.GetServiceLinkedRoleDeletionStatusRequest.serializers, + ..._i173.DeletionTaskStatusType.serializers, + ..._i174.RoleUsageType.serializers, + ..._i175.DeletionTaskFailureReasonType.serializers, + ..._i176.GetServiceLinkedRoleDeletionStatusResponse.serializers, + ..._i177.GetUserRequest.serializers, + ..._i178.GetUserResponse.serializers, + ..._i179.GetUserPolicyRequest.serializers, + ..._i180.GetUserPolicyResponse.serializers, + ..._i181.ListAccessKeysRequest.serializers, + ..._i182.AccessKeyMetadata.serializers, + ..._i183.ListAccessKeysResponse.serializers, + ..._i184.ListAccountAliasesRequest.serializers, + ..._i185.ListAccountAliasesResponse.serializers, + ..._i186.ListAttachedGroupPoliciesRequest.serializers, + ..._i187.ListAttachedGroupPoliciesResponse.serializers, + ..._i188.ListAttachedRolePoliciesRequest.serializers, + ..._i189.ListAttachedRolePoliciesResponse.serializers, + ..._i190.ListAttachedUserPoliciesRequest.serializers, + ..._i191.ListAttachedUserPoliciesResponse.serializers, + ..._i192.PolicyUsageType.serializers, + ..._i193.ListEntitiesForPolicyRequest.serializers, + ..._i194.PolicyGroup.serializers, + ..._i195.PolicyUser.serializers, + ..._i196.PolicyRole.serializers, + ..._i197.ListEntitiesForPolicyResponse.serializers, + ..._i198.ListGroupPoliciesRequest.serializers, + ..._i199.ListGroupPoliciesResponse.serializers, + ..._i200.ListGroupsRequest.serializers, + ..._i201.ListGroupsResponse.serializers, + ..._i202.ListGroupsForUserRequest.serializers, + ..._i203.ListGroupsForUserResponse.serializers, + ..._i204.ListInstanceProfileTagsRequest.serializers, + ..._i205.ListInstanceProfileTagsResponse.serializers, + ..._i206.ListInstanceProfilesRequest.serializers, + ..._i207.ListInstanceProfilesResponse.serializers, + ..._i208.ListInstanceProfilesForRoleRequest.serializers, + ..._i209.ListInstanceProfilesForRoleResponse.serializers, + ..._i210.ListMfaDeviceTagsRequest.serializers, + ..._i211.ListMfaDeviceTagsResponse.serializers, + ..._i212.ListMfaDevicesRequest.serializers, + ..._i213.MfaDevice.serializers, + ..._i214.ListMfaDevicesResponse.serializers, + ..._i215.ListOpenIdConnectProviderTagsRequest.serializers, + ..._i216.ListOpenIdConnectProviderTagsResponse.serializers, + ..._i217.ListOpenIdConnectProvidersRequest.serializers, + ..._i218.OpenIdConnectProviderListEntry.serializers, + ..._i219.ListOpenIdConnectProvidersResponse.serializers, + ..._i220.PolicyScopeType.serializers, + ..._i221.ListPoliciesRequest.serializers, + ..._i222.ListPoliciesResponse.serializers, + ..._i223.ListPoliciesGrantingServiceAccessRequest.serializers, + ..._i224.PolicyType.serializers, + ..._i225.PolicyGrantingServiceAccess.serializers, + ..._i226.ListPoliciesGrantingServiceAccessEntry.serializers, + ..._i227.ListPoliciesGrantingServiceAccessResponse.serializers, + ..._i228.ListPolicyTagsRequest.serializers, + ..._i229.ListPolicyTagsResponse.serializers, + ..._i230.ListPolicyVersionsRequest.serializers, + ..._i231.ListPolicyVersionsResponse.serializers, + ..._i232.ListRolePoliciesRequest.serializers, + ..._i233.ListRolePoliciesResponse.serializers, + ..._i234.ListRoleTagsRequest.serializers, + ..._i235.ListRoleTagsResponse.serializers, + ..._i236.ListRolesRequest.serializers, + ..._i237.ListRolesResponse.serializers, + ..._i238.ListSamlProviderTagsRequest.serializers, + ..._i239.ListSamlProviderTagsResponse.serializers, + ..._i240.ListSamlProvidersRequest.serializers, + ..._i241.SamlProviderListEntry.serializers, + ..._i242.ListSamlProvidersResponse.serializers, + ..._i243.ListSshPublicKeysRequest.serializers, + ..._i244.SshPublicKeyMetadata.serializers, + ..._i245.ListSshPublicKeysResponse.serializers, + ..._i246.ListServerCertificateTagsRequest.serializers, + ..._i247.ListServerCertificateTagsResponse.serializers, + ..._i248.ListServerCertificatesRequest.serializers, + ..._i249.ListServerCertificatesResponse.serializers, + ..._i250.ListServiceSpecificCredentialsRequest.serializers, + ..._i251.ServiceSpecificCredentialMetadata.serializers, + ..._i252.ListServiceSpecificCredentialsResponse.serializers, + ..._i253.ListSigningCertificatesRequest.serializers, + ..._i254.SigningCertificate.serializers, + ..._i255.ListSigningCertificatesResponse.serializers, + ..._i256.ListUserPoliciesRequest.serializers, + ..._i257.ListUserPoliciesResponse.serializers, + ..._i258.ListUserTagsRequest.serializers, + ..._i259.ListUserTagsResponse.serializers, + ..._i260.ListUsersRequest.serializers, + ..._i261.ListUsersResponse.serializers, + ..._i262.AssignmentStatusType.serializers, + ..._i263.ListVirtualMfaDevicesRequest.serializers, + ..._i264.ListVirtualMfaDevicesResponse.serializers, + ..._i265.PutGroupPolicyRequest.serializers, + ..._i266.PutRolePermissionsBoundaryRequest.serializers, + ..._i267.PutRolePolicyRequest.serializers, + ..._i268.PutUserPermissionsBoundaryRequest.serializers, + ..._i269.PutUserPolicyRequest.serializers, + ..._i270.RemoveClientIdFromOpenIdConnectProviderRequest.serializers, + ..._i271.RemoveRoleFromInstanceProfileRequest.serializers, + ..._i272.RemoveUserFromGroupRequest.serializers, + ..._i273.ResetServiceSpecificCredentialRequest.serializers, + ..._i274.ResetServiceSpecificCredentialResponse.serializers, + ..._i275.ResyncMfaDeviceRequest.serializers, + ..._i276.SetDefaultPolicyVersionRequest.serializers, + ..._i277.GlobalEndpointTokenVersion.serializers, + ..._i278.SetSecurityTokenServicePreferencesRequest.serializers, + ..._i279.ContextKeyTypeEnum.serializers, + ..._i280.ContextEntry.serializers, + ..._i281.SimulateCustomPolicyRequest.serializers, + ..._i282.PolicyEvaluationDecisionType.serializers, + ..._i283.PolicySourceType.serializers, + ..._i284.Position.serializers, + ..._i285.Statement.serializers, + ..._i286.OrganizationsDecisionDetail.serializers, + ..._i287.PermissionsBoundaryDecisionDetail.serializers, + ..._i288.ResourceSpecificResult.serializers, + ..._i289.EvaluationResult.serializers, + ..._i290.SimulatePolicyResponse.serializers, + ..._i291.PolicyEvaluationException.serializers, + ..._i292.SimulatePrincipalPolicyRequest.serializers, + ..._i293.TagInstanceProfileRequest.serializers, + ..._i294.TagMfaDeviceRequest.serializers, + ..._i295.TagOpenIdConnectProviderRequest.serializers, + ..._i296.TagPolicyRequest.serializers, + ..._i297.TagRoleRequest.serializers, + ..._i298.TagSamlProviderRequest.serializers, + ..._i299.TagServerCertificateRequest.serializers, + ..._i300.TagUserRequest.serializers, + ..._i301.UntagInstanceProfileRequest.serializers, + ..._i302.UntagMfaDeviceRequest.serializers, + ..._i303.UntagOpenIdConnectProviderRequest.serializers, + ..._i304.UntagPolicyRequest.serializers, + ..._i305.UntagRoleRequest.serializers, + ..._i306.UntagSamlProviderRequest.serializers, + ..._i307.UntagServerCertificateRequest.serializers, + ..._i308.UntagUserRequest.serializers, + ..._i309.UpdateAccessKeyRequest.serializers, + ..._i310.UpdateAccountPasswordPolicyRequest.serializers, + ..._i311.UpdateAssumeRolePolicyRequest.serializers, + ..._i312.UpdateGroupRequest.serializers, + ..._i313.UpdateLoginProfileRequest.serializers, + ..._i314.UpdateOpenIdConnectProviderThumbprintRequest.serializers, + ..._i315.UpdateRoleRequest.serializers, + ..._i316.UpdateRoleResponse.serializers, + ..._i317.UpdateRoleDescriptionRequest.serializers, + ..._i318.UpdateRoleDescriptionResponse.serializers, + ..._i319.UpdateSamlProviderRequest.serializers, + ..._i320.UpdateSamlProviderResponse.serializers, + ..._i321.UpdateSshPublicKeyRequest.serializers, + ..._i322.UpdateServerCertificateRequest.serializers, + ..._i323.UpdateServiceSpecificCredentialRequest.serializers, + ..._i324.UpdateSigningCertificateRequest.serializers, + ..._i325.UpdateUserRequest.serializers, + ..._i326.UploadSshPublicKeyRequest.serializers, + ..._i327.UploadSshPublicKeyResponse.serializers, + ..._i328.DuplicateSshPublicKeyException.serializers, + ..._i329.InvalidPublicKeyException.serializers, + ..._i330.UploadServerCertificateRequest.serializers, + ..._i331.UploadServerCertificateResponse.serializers, + ..._i332.KeyPairMismatchException.serializers, + ..._i333.MalformedCertificateException.serializers, + ..._i334.UploadSigningCertificateRequest.serializers, + ..._i335.UploadSigningCertificateResponse.serializers, + ..._i336.DuplicateCertificateException.serializers, + ..._i337.InvalidCertificateException.serializers, ]; final Map builderFactories = { const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i28.Tag)], - ): _i336.ListBuilder<_i28.Tag>.new, + ): _i338.ListBuilder<_i28.Tag>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i33.Role)], - ): _i336.ListBuilder<_i33.Role>.new, + ): _i338.ListBuilder<_i33.Role>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(String)], - ): _i336.ListBuilder.new, + ): _i338.ListBuilder.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i105.EntityType)], - ): _i336.ListBuilder<_i105.EntityType>.new, + ): _i338.ListBuilder<_i105.EntityType>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i108.AttachedPolicy)], - ): _i336.ListBuilder<_i108.AttachedPolicy>.new, + ): _i338.ListBuilder<_i108.AttachedPolicy>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i107.PolicyDetail)], - ): _i336.ListBuilder<_i107.PolicyDetail>.new, + ): _i338.ListBuilder<_i107.PolicyDetail>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i34.InstanceProfile)], - ): _i336.ListBuilder<_i34.InstanceProfile>.new, + ): _i338.ListBuilder<_i34.InstanceProfile>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i46.PolicyVersion)], - ): _i336.ListBuilder<_i46.PolicyVersion>.new, + ): _i338.ListBuilder<_i46.PolicyVersion>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i110.GroupDetail)], - ): _i336.ListBuilder<_i110.GroupDetail>.new, + ): _i338.ListBuilder<_i110.GroupDetail>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i112.ManagedPolicyDetail)], - ): _i336.ListBuilder<_i112.ManagedPolicyDetail>.new, + ): _i338.ListBuilder<_i112.ManagedPolicyDetail>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i111.RoleDetail)], - ): _i336.ListBuilder<_i111.RoleDetail>.new, + ): _i338.ListBuilder<_i111.RoleDetail>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i109.UserDetail)], - ): _i336.ListBuilder<_i109.UserDetail>.new, + ): _i338.ListBuilder<_i109.UserDetail>.new, const FullType( - _i336.BuiltMap, + _i338.BuiltMap, [ FullType(_i116.SummaryKeyType), FullType(int), ], - ): _i336.MapBuilder<_i116.SummaryKeyType, int>.new, + ): _i338.MapBuilder<_i116.SummaryKeyType, int>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i59.User)], - ): _i336.ListBuilder<_i59.User>.new, + ): _i338.ListBuilder<_i59.User>.new, + const FullType( + _i338.BuiltMap, + [ + FullType(String), + FullType(String), + ], + ): _i338.MapBuilder.new, const FullType( - _i336.BuiltList, - [FullType(_i139.AccessDetail)], - ): _i336.ListBuilder<_i139.AccessDetail>.new, + _i338.BuiltList, + [FullType(_i141.AccessDetail)], + ): _i338.ListBuilder<_i141.AccessDetail>.new, const FullType( - _i336.BuiltList, - [FullType(_i162.TrackedActionLastAccessed)], - ): _i336.ListBuilder<_i162.TrackedActionLastAccessed>.new, + _i338.BuiltList, + [FullType(_i164.TrackedActionLastAccessed)], + ): _i338.ListBuilder<_i164.TrackedActionLastAccessed>.new, const FullType( - _i336.BuiltList, - [FullType(_i163.ServiceLastAccessed)], - ): _i336.ListBuilder<_i163.ServiceLastAccessed>.new, + _i338.BuiltList, + [FullType(_i165.ServiceLastAccessed)], + ): _i338.ListBuilder<_i165.ServiceLastAccessed>.new, const FullType( - _i336.BuiltList, - [FullType(_i168.EntityDetails)], - ): _i336.ListBuilder<_i168.EntityDetails>.new, + _i338.BuiltList, + [FullType(_i170.EntityDetails)], + ): _i338.ListBuilder<_i170.EntityDetails>.new, const FullType( - _i336.BuiltList, - [FullType(_i172.RoleUsageType)], - ): _i336.ListBuilder<_i172.RoleUsageType>.new, + _i338.BuiltList, + [FullType(_i174.RoleUsageType)], + ): _i338.ListBuilder<_i174.RoleUsageType>.new, const FullType( - _i336.BuiltList, - [FullType(_i180.AccessKeyMetadata)], - ): _i336.ListBuilder<_i180.AccessKeyMetadata>.new, + _i338.BuiltList, + [FullType(_i182.AccessKeyMetadata)], + ): _i338.ListBuilder<_i182.AccessKeyMetadata>.new, const FullType( - _i336.BuiltList, - [FullType(_i192.PolicyGroup)], - ): _i336.ListBuilder<_i192.PolicyGroup>.new, + _i338.BuiltList, + [FullType(_i194.PolicyGroup)], + ): _i338.ListBuilder<_i194.PolicyGroup>.new, const FullType( - _i336.BuiltList, - [FullType(_i194.PolicyRole)], - ): _i336.ListBuilder<_i194.PolicyRole>.new, + _i338.BuiltList, + [FullType(_i196.PolicyRole)], + ): _i338.ListBuilder<_i196.PolicyRole>.new, const FullType( - _i336.BuiltList, - [FullType(_i193.PolicyUser)], - ): _i336.ListBuilder<_i193.PolicyUser>.new, + _i338.BuiltList, + [FullType(_i195.PolicyUser)], + ): _i338.ListBuilder<_i195.PolicyUser>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i26.Group)], - ): _i336.ListBuilder<_i26.Group>.new, + ): _i338.ListBuilder<_i26.Group>.new, const FullType( - _i336.BuiltList, - [FullType(_i211.MfaDevice)], - ): _i336.ListBuilder<_i211.MfaDevice>.new, + _i338.BuiltList, + [FullType(_i213.MfaDevice)], + ): _i338.ListBuilder<_i213.MfaDevice>.new, const FullType( - _i336.BuiltList, - [FullType(_i216.OpenIdConnectProviderListEntry)], - ): _i336.ListBuilder<_i216.OpenIdConnectProviderListEntry>.new, + _i338.BuiltList, + [FullType(_i218.OpenIdConnectProviderListEntry)], + ): _i338.ListBuilder<_i218.OpenIdConnectProviderListEntry>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i42.Policy)], - ): _i336.ListBuilder<_i42.Policy>.new, + ): _i338.ListBuilder<_i42.Policy>.new, const FullType( - _i336.BuiltList, - [FullType(_i223.PolicyGrantingServiceAccess)], - ): _i336.ListBuilder<_i223.PolicyGrantingServiceAccess>.new, + _i338.BuiltList, + [FullType(_i225.PolicyGrantingServiceAccess)], + ): _i338.ListBuilder<_i225.PolicyGrantingServiceAccess>.new, const FullType( - _i336.BuiltList, - [FullType(_i224.ListPoliciesGrantingServiceAccessEntry)], - ): _i336.ListBuilder<_i224.ListPoliciesGrantingServiceAccessEntry>.new, + _i338.BuiltList, + [FullType(_i226.ListPoliciesGrantingServiceAccessEntry)], + ): _i338.ListBuilder<_i226.ListPoliciesGrantingServiceAccessEntry>.new, const FullType( - _i336.BuiltList, - [FullType(_i239.SamlProviderListEntry)], - ): _i336.ListBuilder<_i239.SamlProviderListEntry>.new, + _i338.BuiltList, + [FullType(_i241.SamlProviderListEntry)], + ): _i338.ListBuilder<_i241.SamlProviderListEntry>.new, const FullType( - _i336.BuiltList, - [FullType(_i242.SshPublicKeyMetadata)], - ): _i336.ListBuilder<_i242.SshPublicKeyMetadata>.new, + _i338.BuiltList, + [FullType(_i244.SshPublicKeyMetadata)], + ): _i338.ListBuilder<_i244.SshPublicKeyMetadata>.new, const FullType( - _i336.BuiltList, - [FullType(_i158.ServerCertificateMetadata)], - ): _i336.ListBuilder<_i158.ServerCertificateMetadata>.new, + _i338.BuiltList, + [FullType(_i160.ServerCertificateMetadata)], + ): _i338.ListBuilder<_i160.ServerCertificateMetadata>.new, const FullType( - _i336.BuiltList, - [FullType(_i249.ServiceSpecificCredentialMetadata)], - ): _i336.ListBuilder<_i249.ServiceSpecificCredentialMetadata>.new, + _i338.BuiltList, + [FullType(_i251.ServiceSpecificCredentialMetadata)], + ): _i338.ListBuilder<_i251.ServiceSpecificCredentialMetadata>.new, const FullType( - _i336.BuiltList, - [FullType(_i252.SigningCertificate)], - ): _i336.ListBuilder<_i252.SigningCertificate>.new, + _i338.BuiltList, + [FullType(_i254.SigningCertificate)], + ): _i338.ListBuilder<_i254.SigningCertificate>.new, const FullType( - _i336.BuiltList, + _i338.BuiltList, [FullType(_i62.VirtualMfaDevice)], - ): _i336.ListBuilder<_i62.VirtualMfaDevice>.new, + ): _i338.ListBuilder<_i62.VirtualMfaDevice>.new, const FullType( - _i336.BuiltList, - [FullType(_i287.EvaluationResult)], - ): _i336.ListBuilder<_i287.EvaluationResult>.new, + _i338.BuiltList, + [FullType(_i289.EvaluationResult)], + ): _i338.ListBuilder<_i289.EvaluationResult>.new, const FullType( - _i336.BuiltList, - [FullType(_i278.ContextEntry)], - ): _i336.ListBuilder<_i278.ContextEntry>.new, + _i338.BuiltList, + [FullType(_i280.ContextEntry)], + ): _i338.ListBuilder<_i280.ContextEntry>.new, const FullType( - _i336.BuiltMap, + _i338.BuiltMap, [ FullType(String), - FullType(_i280.PolicyEvaluationDecisionType), + FullType(_i282.PolicyEvaluationDecisionType), ], - ): _i336.MapBuilder.new, + ): _i338.MapBuilder.new, const FullType( - _i336.BuiltList, - [FullType(_i283.Statement)], - ): _i336.ListBuilder<_i283.Statement>.new, + _i338.BuiltList, + [FullType(_i285.Statement)], + ): _i338.ListBuilder<_i285.Statement>.new, const FullType( - _i336.BuiltList, - [FullType(_i286.ResourceSpecificResult)], - ): _i336.ListBuilder<_i286.ResourceSpecificResult>.new, + _i338.BuiltList, + [FullType(_i288.ResourceSpecificResult)], + ): _i338.ListBuilder<_i288.ResourceSpecificResult>.new, }; diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/iam_client.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/iam_client.dart index dc0311c39c..7325661daa 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/iam_client.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/iam_client.dart @@ -8,7 +8,7 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:built_collection/built_collection.dart' as _i140; import 'package:smithy/smithy.dart' as _i3; import 'package:smoke_test/src/sdk/src/iam/model/access_key_metadata.dart' - as _i195; + as _i198; import 'package:smoke_test/src/sdk/src/iam/model/add_client_id_to_open_id_connect_provider_request.dart' as _i4; import 'package:smoke_test/src/sdk/src/iam/model/add_role_to_instance_profile_request.dart' @@ -21,7 +21,7 @@ import 'package:smoke_test/src/sdk/src/iam/model/attach_role_policy_request.dart as _i12; import 'package:smoke_test/src/sdk/src/iam/model/attach_user_policy_request.dart' as _i14; -import 'package:smoke_test/src/sdk/src/iam/model/attached_policy.dart' as _i200; +import 'package:smoke_test/src/sdk/src/iam/model/attached_policy.dart' as _i203; import 'package:smoke_test/src/sdk/src/iam/model/change_password_request.dart' as _i16; import 'package:smoke_test/src/sdk/src/iam/model/create_access_key_request.dart' @@ -135,7 +135,7 @@ import 'package:smoke_test/src/sdk/src/iam/model/detach_user_policy_request.dart import 'package:smoke_test/src/sdk/src/iam/model/enable_mfa_device_request.dart' as _i113; import 'package:smoke_test/src/sdk/src/iam/model/evaluation_result.dart' - as _i313; + as _i309; import 'package:smoke_test/src/sdk/src/iam/model/generate_credential_report_response.dart' as _i115; import 'package:smoke_test/src/sdk/src/iam/model/generate_organizations_access_report_request.dart' @@ -180,279 +180,269 @@ import 'package:smoke_test/src/sdk/src/iam/model/get_login_profile_request.dart' as _i151; import 'package:smoke_test/src/sdk/src/iam/model/get_login_profile_response.dart' as _i150; -import 'package:smoke_test/src/sdk/src/iam/model/get_open_id_connect_provider_request.dart' +import 'package:smoke_test/src/sdk/src/iam/model/get_mfa_device_request.dart' as _i154; -import 'package:smoke_test/src/sdk/src/iam/model/get_open_id_connect_provider_response.dart' +import 'package:smoke_test/src/sdk/src/iam/model/get_mfa_device_response.dart' as _i153; -import 'package:smoke_test/src/sdk/src/iam/model/get_organizations_access_report_request.dart' +import 'package:smoke_test/src/sdk/src/iam/model/get_open_id_connect_provider_request.dart' as _i157; -import 'package:smoke_test/src/sdk/src/iam/model/get_organizations_access_report_response.dart' +import 'package:smoke_test/src/sdk/src/iam/model/get_open_id_connect_provider_response.dart' as _i156; -import 'package:smoke_test/src/sdk/src/iam/model/get_policy_request.dart' +import 'package:smoke_test/src/sdk/src/iam/model/get_organizations_access_report_request.dart' as _i160; -import 'package:smoke_test/src/sdk/src/iam/model/get_policy_response.dart' +import 'package:smoke_test/src/sdk/src/iam/model/get_organizations_access_report_response.dart' as _i159; -import 'package:smoke_test/src/sdk/src/iam/model/get_policy_version_request.dart' +import 'package:smoke_test/src/sdk/src/iam/model/get_policy_request.dart' as _i163; -import 'package:smoke_test/src/sdk/src/iam/model/get_policy_version_response.dart' +import 'package:smoke_test/src/sdk/src/iam/model/get_policy_response.dart' as _i162; +import 'package:smoke_test/src/sdk/src/iam/model/get_policy_version_request.dart' + as _i166; +import 'package:smoke_test/src/sdk/src/iam/model/get_policy_version_response.dart' + as _i165; import 'package:smoke_test/src/sdk/src/iam/model/get_role_policy_request.dart' - as _i169; + as _i172; import 'package:smoke_test/src/sdk/src/iam/model/get_role_policy_response.dart' - as _i168; + as _i171; import 'package:smoke_test/src/sdk/src/iam/model/get_role_request.dart' - as _i166; + as _i169; import 'package:smoke_test/src/sdk/src/iam/model/get_role_response.dart' - as _i165; + as _i168; import 'package:smoke_test/src/sdk/src/iam/model/get_saml_provider_request.dart' - as _i172; + as _i175; import 'package:smoke_test/src/sdk/src/iam/model/get_saml_provider_response.dart' - as _i171; + as _i174; import 'package:smoke_test/src/sdk/src/iam/model/get_server_certificate_request.dart' - as _i178; + as _i181; import 'package:smoke_test/src/sdk/src/iam/model/get_server_certificate_response.dart' - as _i177; + as _i180; import 'package:smoke_test/src/sdk/src/iam/model/get_service_last_accessed_details_request.dart' - as _i181; + as _i184; import 'package:smoke_test/src/sdk/src/iam/model/get_service_last_accessed_details_response.dart' - as _i180; + as _i183; import 'package:smoke_test/src/sdk/src/iam/model/get_service_last_accessed_details_with_entities_request.dart' - as _i184; + as _i187; import 'package:smoke_test/src/sdk/src/iam/model/get_service_last_accessed_details_with_entities_response.dart' - as _i183; + as _i186; import 'package:smoke_test/src/sdk/src/iam/model/get_service_linked_role_deletion_status_request.dart' - as _i187; + as _i190; import 'package:smoke_test/src/sdk/src/iam/model/get_service_linked_role_deletion_status_response.dart' - as _i186; + as _i189; import 'package:smoke_test/src/sdk/src/iam/model/get_ssh_public_key_request.dart' - as _i175; + as _i178; import 'package:smoke_test/src/sdk/src/iam/model/get_ssh_public_key_response.dart' - as _i174; + as _i177; import 'package:smoke_test/src/sdk/src/iam/model/get_user_policy_request.dart' - as _i193; + as _i196; import 'package:smoke_test/src/sdk/src/iam/model/get_user_policy_response.dart' - as _i192; + as _i195; import 'package:smoke_test/src/sdk/src/iam/model/get_user_request.dart' - as _i190; + as _i193; import 'package:smoke_test/src/sdk/src/iam/model/get_user_response.dart' - as _i189; -import 'package:smoke_test/src/sdk/src/iam/model/group.dart' as _i212; + as _i192; +import 'package:smoke_test/src/sdk/src/iam/model/group.dart' as _i215; import 'package:smoke_test/src/sdk/src/iam/model/instance_profile.dart' - as _i220; + as _i223; import 'package:smoke_test/src/sdk/src/iam/model/list_access_keys_request.dart' - as _i196; + as _i199; import 'package:smoke_test/src/sdk/src/iam/model/list_account_aliases_request.dart' - as _i198; -import 'package:smoke_test/src/sdk/src/iam/model/list_attached_group_policies_request.dart' as _i201; +import 'package:smoke_test/src/sdk/src/iam/model/list_attached_group_policies_request.dart' + as _i204; import 'package:smoke_test/src/sdk/src/iam/model/list_attached_role_policies_request.dart' - as _i203; + as _i206; import 'package:smoke_test/src/sdk/src/iam/model/list_attached_user_policies_request.dart' - as _i205; -import 'package:smoke_test/src/sdk/src/iam/model/list_entities_for_policy_request.dart' as _i208; +import 'package:smoke_test/src/sdk/src/iam/model/list_entities_for_policy_request.dart' + as _i211; import 'package:smoke_test/src/sdk/src/iam/model/list_entities_for_policy_response.dart' - as _i207; -import 'package:smoke_test/src/sdk/src/iam/model/list_group_policies_request.dart' as _i210; +import 'package:smoke_test/src/sdk/src/iam/model/list_group_policies_request.dart' + as _i213; import 'package:smoke_test/src/sdk/src/iam/model/list_groups_for_user_request.dart' - as _i215; + as _i218; import 'package:smoke_test/src/sdk/src/iam/model/list_groups_request.dart' - as _i213; + as _i216; import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profile_tags_request.dart' - as _i218; -import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profile_tags_response.dart' - as _i217; + as _i221; import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profiles_for_role_request.dart' - as _i223; + as _i226; import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profiles_request.dart' - as _i221; + as _i224; import 'package:smoke_test/src/sdk/src/iam/model/list_mfa_device_tags_request.dart' - as _i226; -import 'package:smoke_test/src/sdk/src/iam/model/list_mfa_device_tags_response.dart' - as _i225; + as _i228; import 'package:smoke_test/src/sdk/src/iam/model/list_mfa_devices_request.dart' - as _i229; -import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_provider_tags_request.dart' - as _i232; -import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_provider_tags_response.dart' as _i231; +import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_provider_tags_request.dart' + as _i233; import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_providers_request.dart' - as _i235; + as _i236; import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_providers_response.dart' - as _i234; + as _i235; import 'package:smoke_test/src/sdk/src/iam/model/list_policies_granting_service_access_request.dart' - as _i241; + as _i242; import 'package:smoke_test/src/sdk/src/iam/model/list_policies_granting_service_access_response.dart' - as _i240; + as _i241; import 'package:smoke_test/src/sdk/src/iam/model/list_policies_request.dart' - as _i238; + as _i239; import 'package:smoke_test/src/sdk/src/iam/model/list_policy_tags_request.dart' as _i244; -import 'package:smoke_test/src/sdk/src/iam/model/list_policy_tags_response.dart' - as _i243; import 'package:smoke_test/src/sdk/src/iam/model/list_policy_versions_request.dart' as _i247; import 'package:smoke_test/src/sdk/src/iam/model/list_role_policies_request.dart' as _i249; import 'package:smoke_test/src/sdk/src/iam/model/list_role_tags_request.dart' - as _i252; -import 'package:smoke_test/src/sdk/src/iam/model/list_role_tags_response.dart' as _i251; import 'package:smoke_test/src/sdk/src/iam/model/list_roles_request.dart' - as _i255; + as _i254; import 'package:smoke_test/src/sdk/src/iam/model/list_saml_provider_tags_request.dart' - as _i258; -import 'package:smoke_test/src/sdk/src/iam/model/list_saml_provider_tags_response.dart' - as _i257; + as _i256; import 'package:smoke_test/src/sdk/src/iam/model/list_saml_providers_request.dart' - as _i261; + as _i259; import 'package:smoke_test/src/sdk/src/iam/model/list_saml_providers_response.dart' - as _i260; + as _i258; import 'package:smoke_test/src/sdk/src/iam/model/list_server_certificate_tags_request.dart' - as _i267; -import 'package:smoke_test/src/sdk/src/iam/model/list_server_certificate_tags_response.dart' - as _i266; + as _i264; import 'package:smoke_test/src/sdk/src/iam/model/list_server_certificates_request.dart' - as _i270; + as _i267; import 'package:smoke_test/src/sdk/src/iam/model/list_service_specific_credentials_request.dart' - as _i273; + as _i270; import 'package:smoke_test/src/sdk/src/iam/model/list_service_specific_credentials_response.dart' - as _i272; + as _i269; import 'package:smoke_test/src/sdk/src/iam/model/list_signing_certificates_request.dart' - as _i276; + as _i273; import 'package:smoke_test/src/sdk/src/iam/model/list_ssh_public_keys_request.dart' - as _i264; + as _i262; import 'package:smoke_test/src/sdk/src/iam/model/list_user_policies_request.dart' - as _i278; + as _i275; import 'package:smoke_test/src/sdk/src/iam/model/list_user_tags_request.dart' - as _i281; + as _i277; import 'package:smoke_test/src/sdk/src/iam/model/list_users_request.dart' - as _i283; + as _i279; import 'package:smoke_test/src/sdk/src/iam/model/list_virtual_mfa_devices_request.dart' - as _i286; -import 'package:smoke_test/src/sdk/src/iam/model/mfa_device.dart' as _i228; -import 'package:smoke_test/src/sdk/src/iam/model/policy.dart' as _i237; + as _i282; +import 'package:smoke_test/src/sdk/src/iam/model/mfa_device.dart' as _i230; +import 'package:smoke_test/src/sdk/src/iam/model/policy.dart' as _i238; import 'package:smoke_test/src/sdk/src/iam/model/policy_version.dart' as _i246; import 'package:smoke_test/src/sdk/src/iam/model/put_group_policy_request.dart' - as _i288; + as _i284; import 'package:smoke_test/src/sdk/src/iam/model/put_role_permissions_boundary_request.dart' - as _i290; + as _i286; import 'package:smoke_test/src/sdk/src/iam/model/put_role_policy_request.dart' - as _i292; + as _i288; import 'package:smoke_test/src/sdk/src/iam/model/put_user_permissions_boundary_request.dart' - as _i294; + as _i290; import 'package:smoke_test/src/sdk/src/iam/model/put_user_policy_request.dart' - as _i296; + as _i292; import 'package:smoke_test/src/sdk/src/iam/model/remove_client_id_from_open_id_connect_provider_request.dart' - as _i298; + as _i294; import 'package:smoke_test/src/sdk/src/iam/model/remove_role_from_instance_profile_request.dart' - as _i300; + as _i296; import 'package:smoke_test/src/sdk/src/iam/model/remove_user_from_group_request.dart' - as _i302; + as _i298; import 'package:smoke_test/src/sdk/src/iam/model/reset_service_specific_credential_request.dart' - as _i305; + as _i301; import 'package:smoke_test/src/sdk/src/iam/model/reset_service_specific_credential_response.dart' - as _i304; + as _i300; import 'package:smoke_test/src/sdk/src/iam/model/resync_mfa_device_request.dart' - as _i307; -import 'package:smoke_test/src/sdk/src/iam/model/role.dart' as _i254; + as _i303; +import 'package:smoke_test/src/sdk/src/iam/model/role.dart' as _i253; import 'package:smoke_test/src/sdk/src/iam/model/server_certificate_metadata.dart' - as _i269; + as _i266; import 'package:smoke_test/src/sdk/src/iam/model/set_default_policy_version_request.dart' - as _i309; + as _i305; import 'package:smoke_test/src/sdk/src/iam/model/set_security_token_service_preferences_request.dart' - as _i311; + as _i307; import 'package:smoke_test/src/sdk/src/iam/model/signing_certificate.dart' - as _i275; + as _i272; import 'package:smoke_test/src/sdk/src/iam/model/simulate_custom_policy_request.dart' - as _i314; + as _i310; import 'package:smoke_test/src/sdk/src/iam/model/simulate_principal_policy_request.dart' - as _i316; + as _i312; import 'package:smoke_test/src/sdk/src/iam/model/ssh_public_key_metadata.dart' - as _i263; -import 'package:smoke_test/src/sdk/src/iam/model/tag.dart' as _i280; + as _i261; +import 'package:smoke_test/src/sdk/src/iam/model/tag.dart' as _i220; import 'package:smoke_test/src/sdk/src/iam/model/tag_instance_profile_request.dart' - as _i318; + as _i314; import 'package:smoke_test/src/sdk/src/iam/model/tag_mfa_device_request.dart' - as _i320; + as _i316; import 'package:smoke_test/src/sdk/src/iam/model/tag_open_id_connect_provider_request.dart' - as _i322; + as _i318; import 'package:smoke_test/src/sdk/src/iam/model/tag_policy_request.dart' - as _i324; + as _i320; import 'package:smoke_test/src/sdk/src/iam/model/tag_role_request.dart' - as _i326; + as _i322; import 'package:smoke_test/src/sdk/src/iam/model/tag_saml_provider_request.dart' - as _i328; + as _i324; import 'package:smoke_test/src/sdk/src/iam/model/tag_server_certificate_request.dart' - as _i330; + as _i326; import 'package:smoke_test/src/sdk/src/iam/model/tag_user_request.dart' - as _i332; + as _i328; import 'package:smoke_test/src/sdk/src/iam/model/untag_instance_profile_request.dart' - as _i334; + as _i330; import 'package:smoke_test/src/sdk/src/iam/model/untag_mfa_device_request.dart' - as _i336; + as _i332; import 'package:smoke_test/src/sdk/src/iam/model/untag_open_id_connect_provider_request.dart' - as _i338; + as _i334; import 'package:smoke_test/src/sdk/src/iam/model/untag_policy_request.dart' - as _i340; + as _i336; import 'package:smoke_test/src/sdk/src/iam/model/untag_role_request.dart' - as _i342; + as _i338; import 'package:smoke_test/src/sdk/src/iam/model/untag_saml_provider_request.dart' - as _i344; + as _i340; import 'package:smoke_test/src/sdk/src/iam/model/untag_server_certificate_request.dart' - as _i346; + as _i342; import 'package:smoke_test/src/sdk/src/iam/model/untag_user_request.dart' - as _i348; + as _i344; import 'package:smoke_test/src/sdk/src/iam/model/update_access_key_request.dart' - as _i350; + as _i346; import 'package:smoke_test/src/sdk/src/iam/model/update_account_password_policy_request.dart' - as _i352; + as _i348; import 'package:smoke_test/src/sdk/src/iam/model/update_assume_role_policy_request.dart' - as _i354; + as _i350; import 'package:smoke_test/src/sdk/src/iam/model/update_group_request.dart' - as _i356; + as _i352; import 'package:smoke_test/src/sdk/src/iam/model/update_login_profile_request.dart' - as _i358; + as _i354; import 'package:smoke_test/src/sdk/src/iam/model/update_open_id_connect_provider_thumbprint_request.dart' - as _i360; + as _i356; import 'package:smoke_test/src/sdk/src/iam/model/update_role_description_request.dart' - as _i366; + as _i362; import 'package:smoke_test/src/sdk/src/iam/model/update_role_description_response.dart' - as _i365; + as _i361; import 'package:smoke_test/src/sdk/src/iam/model/update_role_request.dart' - as _i363; + as _i359; import 'package:smoke_test/src/sdk/src/iam/model/update_role_response.dart' - as _i362; + as _i358; import 'package:smoke_test/src/sdk/src/iam/model/update_saml_provider_request.dart' - as _i369; + as _i365; import 'package:smoke_test/src/sdk/src/iam/model/update_saml_provider_response.dart' - as _i368; + as _i364; import 'package:smoke_test/src/sdk/src/iam/model/update_server_certificate_request.dart' - as _i373; + as _i369; import 'package:smoke_test/src/sdk/src/iam/model/update_service_specific_credential_request.dart' - as _i375; + as _i371; import 'package:smoke_test/src/sdk/src/iam/model/update_signing_certificate_request.dart' - as _i377; + as _i373; import 'package:smoke_test/src/sdk/src/iam/model/update_ssh_public_key_request.dart' - as _i371; + as _i367; import 'package:smoke_test/src/sdk/src/iam/model/update_user_request.dart' - as _i379; + as _i375; import 'package:smoke_test/src/sdk/src/iam/model/upload_server_certificate_request.dart' - as _i385; + as _i381; import 'package:smoke_test/src/sdk/src/iam/model/upload_server_certificate_response.dart' - as _i384; + as _i380; import 'package:smoke_test/src/sdk/src/iam/model/upload_signing_certificate_request.dart' - as _i388; + as _i384; import 'package:smoke_test/src/sdk/src/iam/model/upload_signing_certificate_response.dart' - as _i387; + as _i383; import 'package:smoke_test/src/sdk/src/iam/model/upload_ssh_public_key_request.dart' - as _i382; + as _i378; import 'package:smoke_test/src/sdk/src/iam/model/upload_ssh_public_key_response.dart' - as _i381; + as _i377; import 'package:smoke_test/src/sdk/src/iam/model/user.dart' as _i141; import 'package:smoke_test/src/sdk/src/iam/model/virtual_mfa_device.dart' - as _i285; + as _i281; import 'package:smoke_test/src/sdk/src/iam/operation/add_client_id_to_open_id_connect_provider_operation.dart' as _i5; import 'package:smoke_test/src/sdk/src/iam/operation/add_role_to_instance_profile_operation.dart' @@ -579,70 +569,72 @@ import 'package:smoke_test/src/sdk/src/iam/operation/get_instance_profile_operat as _i149; import 'package:smoke_test/src/sdk/src/iam/operation/get_login_profile_operation.dart' as _i152; -import 'package:smoke_test/src/sdk/src/iam/operation/get_open_id_connect_provider_operation.dart' +import 'package:smoke_test/src/sdk/src/iam/operation/get_mfa_device_operation.dart' as _i155; -import 'package:smoke_test/src/sdk/src/iam/operation/get_organizations_access_report_operation.dart' +import 'package:smoke_test/src/sdk/src/iam/operation/get_open_id_connect_provider_operation.dart' as _i158; -import 'package:smoke_test/src/sdk/src/iam/operation/get_policy_operation.dart' +import 'package:smoke_test/src/sdk/src/iam/operation/get_organizations_access_report_operation.dart' as _i161; -import 'package:smoke_test/src/sdk/src/iam/operation/get_policy_version_operation.dart' +import 'package:smoke_test/src/sdk/src/iam/operation/get_policy_operation.dart' as _i164; -import 'package:smoke_test/src/sdk/src/iam/operation/get_role_operation.dart' +import 'package:smoke_test/src/sdk/src/iam/operation/get_policy_version_operation.dart' as _i167; -import 'package:smoke_test/src/sdk/src/iam/operation/get_role_policy_operation.dart' +import 'package:smoke_test/src/sdk/src/iam/operation/get_role_operation.dart' as _i170; -import 'package:smoke_test/src/sdk/src/iam/operation/get_saml_provider_operation.dart' +import 'package:smoke_test/src/sdk/src/iam/operation/get_role_policy_operation.dart' as _i173; +import 'package:smoke_test/src/sdk/src/iam/operation/get_saml_provider_operation.dart' + as _i176; import 'package:smoke_test/src/sdk/src/iam/operation/get_server_certificate_operation.dart' - as _i179; -import 'package:smoke_test/src/sdk/src/iam/operation/get_service_last_accessed_details_operation.dart' as _i182; -import 'package:smoke_test/src/sdk/src/iam/operation/get_service_last_accessed_details_with_entities_operation.dart' +import 'package:smoke_test/src/sdk/src/iam/operation/get_service_last_accessed_details_operation.dart' as _i185; -import 'package:smoke_test/src/sdk/src/iam/operation/get_service_linked_role_deletion_status_operation.dart' +import 'package:smoke_test/src/sdk/src/iam/operation/get_service_last_accessed_details_with_entities_operation.dart' as _i188; +import 'package:smoke_test/src/sdk/src/iam/operation/get_service_linked_role_deletion_status_operation.dart' + as _i191; import 'package:smoke_test/src/sdk/src/iam/operation/get_ssh_public_key_operation.dart' - as _i176; + as _i179; import 'package:smoke_test/src/sdk/src/iam/operation/get_user_operation.dart' - as _i191; -import 'package:smoke_test/src/sdk/src/iam/operation/get_user_policy_operation.dart' as _i194; -import 'package:smoke_test/src/sdk/src/iam/operation/list_access_keys_operation.dart' +import 'package:smoke_test/src/sdk/src/iam/operation/get_user_policy_operation.dart' as _i197; +import 'package:smoke_test/src/sdk/src/iam/operation/list_access_keys_operation.dart' + as _i200; import 'package:smoke_test/src/sdk/src/iam/operation/list_account_aliases_operation.dart' - as _i199; -import 'package:smoke_test/src/sdk/src/iam/operation/list_attached_group_policies_operation.dart' as _i202; +import 'package:smoke_test/src/sdk/src/iam/operation/list_attached_group_policies_operation.dart' + as _i205; import 'package:smoke_test/src/sdk/src/iam/operation/list_attached_role_policies_operation.dart' - as _i204; + as _i207; import 'package:smoke_test/src/sdk/src/iam/operation/list_attached_user_policies_operation.dart' - as _i206; -import 'package:smoke_test/src/sdk/src/iam/operation/list_entities_for_policy_operation.dart' as _i209; +import 'package:smoke_test/src/sdk/src/iam/operation/list_entities_for_policy_operation.dart' + as _i212; import 'package:smoke_test/src/sdk/src/iam/operation/list_group_policies_operation.dart' - as _i211; + as _i214; import 'package:smoke_test/src/sdk/src/iam/operation/list_groups_for_user_operation.dart' - as _i216; + as _i219; import 'package:smoke_test/src/sdk/src/iam/operation/list_groups_operation.dart' - as _i214; + as _i217; import 'package:smoke_test/src/sdk/src/iam/operation/list_instance_profile_tags_operation.dart' - as _i219; + as _i222; import 'package:smoke_test/src/sdk/src/iam/operation/list_instance_profiles_for_role_operation.dart' - as _i224; + as _i227; import 'package:smoke_test/src/sdk/src/iam/operation/list_instance_profiles_operation.dart' - as _i222; + as _i225; import 'package:smoke_test/src/sdk/src/iam/operation/list_mfa_device_tags_operation.dart' - as _i227; + as _i229; import 'package:smoke_test/src/sdk/src/iam/operation/list_mfa_devices_operation.dart' - as _i230; + as _i232; import 'package:smoke_test/src/sdk/src/iam/operation/list_open_id_connect_provider_tags_operation.dart' - as _i233; + as _i234; import 'package:smoke_test/src/sdk/src/iam/operation/list_open_id_connect_providers_operation.dart' - as _i236; + as _i237; import 'package:smoke_test/src/sdk/src/iam/operation/list_policies_granting_service_access_operation.dart' - as _i242; + as _i243; import 'package:smoke_test/src/sdk/src/iam/operation/list_policies_operation.dart' - as _i239; + as _i240; import 'package:smoke_test/src/sdk/src/iam/operation/list_policy_tags_operation.dart' as _i245; import 'package:smoke_test/src/sdk/src/iam/operation/list_policy_versions_operation.dart' @@ -650,125 +642,125 @@ import 'package:smoke_test/src/sdk/src/iam/operation/list_policy_versions_operat import 'package:smoke_test/src/sdk/src/iam/operation/list_role_policies_operation.dart' as _i250; import 'package:smoke_test/src/sdk/src/iam/operation/list_role_tags_operation.dart' - as _i253; + as _i252; import 'package:smoke_test/src/sdk/src/iam/operation/list_roles_operation.dart' - as _i256; + as _i255; import 'package:smoke_test/src/sdk/src/iam/operation/list_saml_provider_tags_operation.dart' - as _i259; + as _i257; import 'package:smoke_test/src/sdk/src/iam/operation/list_saml_providers_operation.dart' - as _i262; + as _i260; import 'package:smoke_test/src/sdk/src/iam/operation/list_server_certificate_tags_operation.dart' - as _i268; + as _i265; import 'package:smoke_test/src/sdk/src/iam/operation/list_server_certificates_operation.dart' - as _i271; + as _i268; import 'package:smoke_test/src/sdk/src/iam/operation/list_service_specific_credentials_operation.dart' - as _i274; + as _i271; import 'package:smoke_test/src/sdk/src/iam/operation/list_signing_certificates_operation.dart' - as _i277; + as _i274; import 'package:smoke_test/src/sdk/src/iam/operation/list_ssh_public_keys_operation.dart' - as _i265; + as _i263; import 'package:smoke_test/src/sdk/src/iam/operation/list_user_policies_operation.dart' - as _i279; + as _i276; import 'package:smoke_test/src/sdk/src/iam/operation/list_user_tags_operation.dart' - as _i282; + as _i278; import 'package:smoke_test/src/sdk/src/iam/operation/list_users_operation.dart' - as _i284; + as _i280; import 'package:smoke_test/src/sdk/src/iam/operation/list_virtual_mfa_devices_operation.dart' - as _i287; + as _i283; import 'package:smoke_test/src/sdk/src/iam/operation/put_group_policy_operation.dart' - as _i289; + as _i285; import 'package:smoke_test/src/sdk/src/iam/operation/put_role_permissions_boundary_operation.dart' - as _i291; + as _i287; import 'package:smoke_test/src/sdk/src/iam/operation/put_role_policy_operation.dart' - as _i293; + as _i289; import 'package:smoke_test/src/sdk/src/iam/operation/put_user_permissions_boundary_operation.dart' - as _i295; + as _i291; import 'package:smoke_test/src/sdk/src/iam/operation/put_user_policy_operation.dart' - as _i297; + as _i293; import 'package:smoke_test/src/sdk/src/iam/operation/remove_client_id_from_open_id_connect_provider_operation.dart' - as _i299; + as _i295; import 'package:smoke_test/src/sdk/src/iam/operation/remove_role_from_instance_profile_operation.dart' - as _i301; + as _i297; import 'package:smoke_test/src/sdk/src/iam/operation/remove_user_from_group_operation.dart' - as _i303; + as _i299; import 'package:smoke_test/src/sdk/src/iam/operation/reset_service_specific_credential_operation.dart' - as _i306; + as _i302; import 'package:smoke_test/src/sdk/src/iam/operation/resync_mfa_device_operation.dart' - as _i308; + as _i304; import 'package:smoke_test/src/sdk/src/iam/operation/set_default_policy_version_operation.dart' - as _i310; + as _i306; import 'package:smoke_test/src/sdk/src/iam/operation/set_security_token_service_preferences_operation.dart' - as _i312; + as _i308; import 'package:smoke_test/src/sdk/src/iam/operation/simulate_custom_policy_operation.dart' - as _i315; + as _i311; import 'package:smoke_test/src/sdk/src/iam/operation/simulate_principal_policy_operation.dart' - as _i317; + as _i313; import 'package:smoke_test/src/sdk/src/iam/operation/tag_instance_profile_operation.dart' - as _i319; + as _i315; import 'package:smoke_test/src/sdk/src/iam/operation/tag_mfa_device_operation.dart' - as _i321; + as _i317; import 'package:smoke_test/src/sdk/src/iam/operation/tag_open_id_connect_provider_operation.dart' - as _i323; + as _i319; import 'package:smoke_test/src/sdk/src/iam/operation/tag_policy_operation.dart' - as _i325; + as _i321; import 'package:smoke_test/src/sdk/src/iam/operation/tag_role_operation.dart' - as _i327; + as _i323; import 'package:smoke_test/src/sdk/src/iam/operation/tag_saml_provider_operation.dart' - as _i329; + as _i325; import 'package:smoke_test/src/sdk/src/iam/operation/tag_server_certificate_operation.dart' - as _i331; + as _i327; import 'package:smoke_test/src/sdk/src/iam/operation/tag_user_operation.dart' - as _i333; + as _i329; import 'package:smoke_test/src/sdk/src/iam/operation/untag_instance_profile_operation.dart' - as _i335; + as _i331; import 'package:smoke_test/src/sdk/src/iam/operation/untag_mfa_device_operation.dart' - as _i337; + as _i333; import 'package:smoke_test/src/sdk/src/iam/operation/untag_open_id_connect_provider_operation.dart' - as _i339; + as _i335; import 'package:smoke_test/src/sdk/src/iam/operation/untag_policy_operation.dart' - as _i341; + as _i337; import 'package:smoke_test/src/sdk/src/iam/operation/untag_role_operation.dart' - as _i343; + as _i339; import 'package:smoke_test/src/sdk/src/iam/operation/untag_saml_provider_operation.dart' - as _i345; + as _i341; import 'package:smoke_test/src/sdk/src/iam/operation/untag_server_certificate_operation.dart' - as _i347; + as _i343; import 'package:smoke_test/src/sdk/src/iam/operation/untag_user_operation.dart' - as _i349; + as _i345; import 'package:smoke_test/src/sdk/src/iam/operation/update_access_key_operation.dart' - as _i351; + as _i347; import 'package:smoke_test/src/sdk/src/iam/operation/update_account_password_policy_operation.dart' - as _i353; + as _i349; import 'package:smoke_test/src/sdk/src/iam/operation/update_assume_role_policy_operation.dart' - as _i355; + as _i351; import 'package:smoke_test/src/sdk/src/iam/operation/update_group_operation.dart' - as _i357; + as _i353; import 'package:smoke_test/src/sdk/src/iam/operation/update_login_profile_operation.dart' - as _i359; + as _i355; import 'package:smoke_test/src/sdk/src/iam/operation/update_open_id_connect_provider_thumbprint_operation.dart' - as _i361; + as _i357; import 'package:smoke_test/src/sdk/src/iam/operation/update_role_description_operation.dart' - as _i367; + as _i363; import 'package:smoke_test/src/sdk/src/iam/operation/update_role_operation.dart' - as _i364; + as _i360; import 'package:smoke_test/src/sdk/src/iam/operation/update_saml_provider_operation.dart' - as _i370; + as _i366; import 'package:smoke_test/src/sdk/src/iam/operation/update_server_certificate_operation.dart' - as _i374; + as _i370; import 'package:smoke_test/src/sdk/src/iam/operation/update_service_specific_credential_operation.dart' - as _i376; + as _i372; import 'package:smoke_test/src/sdk/src/iam/operation/update_signing_certificate_operation.dart' - as _i378; + as _i374; import 'package:smoke_test/src/sdk/src/iam/operation/update_ssh_public_key_operation.dart' - as _i372; + as _i368; import 'package:smoke_test/src/sdk/src/iam/operation/update_user_operation.dart' - as _i380; + as _i376; import 'package:smoke_test/src/sdk/src/iam/operation/upload_server_certificate_operation.dart' - as _i386; + as _i382; import 'package:smoke_test/src/sdk/src/iam/operation/upload_signing_certificate_operation.dart' - as _i389; + as _i385; import 'package:smoke_test/src/sdk/src/iam/operation/upload_ssh_public_key_operation.dart' - as _i383; + as _i379; /// ## Identity and Access Management /// @@ -866,7 +858,7 @@ class IamClient { /// Attaches the specified managed policy to the specified IAM group. /// - /// You use this operation to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy. + /// You use this operation to attach a managed policy to a group. To embed an inline policy in a group, use [`PutGroupPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutGroupPolicy.html) . /// /// As a best practice, you can validate your IAM policies. To learn more, see [Validating IAM policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html) in the _IAM User Guide_. /// @@ -890,9 +882,9 @@ class IamClient { /// Attaches the specified managed policy to the specified IAM role. When you attach a managed policy to a role, the managed policy becomes part of the role's permission (access) policy. /// - /// You cannot use a managed policy as the role's trust policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy. + /// You cannot use a managed policy as the role's trust policy. The role's trust policy is created at the same time as the role, using [`CreateRole`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) . You can update a role's trust policy using [`UpdateAssumerolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAssumeRolePolicy.html) . /// - /// Use this operation to attach a _managed_ policy to a role. To embed an inline policy in a role, use PutRolePolicy. For more information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. + /// Use this operation to attach a _managed_ policy to a role. To embed an inline policy in a role, use [`PutRolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutRolePolicy.html) . For more information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// As a best practice, you can validate your IAM policies. To learn more, see [Validating IAM policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html) in the _IAM User Guide_. _i3.SmithyOperation attachRolePolicy( @@ -914,7 +906,7 @@ class IamClient { /// Attaches the specified managed policy to the specified user. /// - /// You use this operation to attach a _managed_ policy to a user. To embed an inline policy in a user, use PutUserPolicy. + /// You use this operation to attach a _managed_ policy to a user. To embed an inline policy in a user, use [`PutUserPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutUserPolicy.html) . /// /// As a best practice, you can validate your IAM policies. To learn more, see [Validating IAM policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html) in the _IAM User Guide_. /// @@ -2219,14 +2211,32 @@ class IamClient { ); } + /// Retrieves information about an MFA device for a specified user. + _i3.SmithyOperation<_i153.GetMfaDeviceResponse> getMfaDevice( + _i154.GetMfaDeviceRequest input, { + _i1.AWSHttpClient? client, + _i2.AWSCredentialsProvider? credentialsProvider, + }) { + return _i155.GetMfaDeviceOperation( + region: _region, + baseUri: _baseUri, + credentialsProvider: credentialsProvider ?? _credentialsProvider, + requestInterceptors: _requestInterceptors, + responseInterceptors: _responseInterceptors, + ).run( + input, + client: client ?? _client, + ); + } + /// Returns information about the specified OpenID Connect (OIDC) provider resource object in IAM. - _i3.SmithyOperation<_i153.GetOpenIdConnectProviderResponse> + _i3.SmithyOperation<_i156.GetOpenIdConnectProviderResponse> getOpenIdConnectProvider( - _i154.GetOpenIdConnectProviderRequest input, { + _i157.GetOpenIdConnectProviderRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i155.GetOpenIdConnectProviderOperation( + return _i158.GetOpenIdConnectProviderOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2247,13 +2257,13 @@ class IamClient { /// For each service that principals in an account (root user, IAM users, or IAM roles) could access using SCPs, the operation returns details about the most recent access attempt. If there was no attempt, the service is listed without details about the most recent attempt to access the service. If the operation fails, it returns the reason that it failed. /// /// By default, the list is sorted by service namespace. - _i3.SmithyOperation<_i156.GetOrganizationsAccessReportResponse> + _i3.SmithyOperation<_i159.GetOrganizationsAccessReportResponse> getOrganizationsAccessReport( - _i157.GetOrganizationsAccessReportRequest input, { + _i160.GetOrganizationsAccessReportRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i158.GetOrganizationsAccessReportOperation( + return _i161.GetOrganizationsAccessReportOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2270,12 +2280,12 @@ class IamClient { /// This operation retrieves information about managed policies. To retrieve information about an inline policy that is embedded with an IAM user, group, or role, use GetUserPolicy, GetGroupPolicy, or GetRolePolicy. /// /// For more information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i159.GetPolicyResponse> getPolicy( - _i160.GetPolicyRequest input, { + _i3.SmithyOperation<_i162.GetPolicyResponse> getPolicy( + _i163.GetPolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i161.GetPolicyOperation( + return _i164.GetPolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2298,12 +2308,12 @@ class IamClient { /// For more information about the types of policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// For more information about managed policy versions, see [Versioning for managed policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i162.GetPolicyVersionResponse> getPolicyVersion( - _i163.GetPolicyVersionRequest input, { + _i3.SmithyOperation<_i165.GetPolicyVersionResponse> getPolicyVersion( + _i166.GetPolicyVersionRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i164.GetPolicyVersionOperation( + return _i167.GetPolicyVersionOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2318,12 +2328,12 @@ class IamClient { /// Retrieves information about the specified role, including the role's path, GUID, ARN, and the role's trust policy that grants permission to assume the role. For more information about roles, see [Working with roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). /// /// Policies returned by this operation are URL-encoded compliant with [RFC 3986](https://tools.ietf.org/html/rfc3986). You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the `decode` method of the `java.net.URLDecoder` utility class in the Java SDK. Other languages and SDKs provide similar functionality. - _i3.SmithyOperation<_i165.GetRoleResponse> getRole( - _i166.GetRoleRequest input, { + _i3.SmithyOperation<_i168.GetRoleResponse> getRole( + _i169.GetRoleRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i167.GetRoleOperation( + return _i170.GetRoleOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2344,12 +2354,12 @@ class IamClient { /// For more information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// For more information about roles, see [Using roles to delegate permissions and federate identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). - _i3.SmithyOperation<_i168.GetRolePolicyResponse> getRolePolicy( - _i169.GetRolePolicyRequest input, { + _i3.SmithyOperation<_i171.GetRolePolicyResponse> getRolePolicy( + _i172.GetRolePolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i170.GetRolePolicyOperation( + return _i173.GetRolePolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2364,12 +2374,12 @@ class IamClient { /// Returns the SAML provider metadocument that was uploaded when the IAM SAML provider resource object was created or updated. /// /// This operation requires [Signature Version 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). - _i3.SmithyOperation<_i171.GetSamlProviderResponse> getSamlProvider( - _i172.GetSamlProviderRequest input, { + _i3.SmithyOperation<_i174.GetSamlProviderResponse> getSamlProvider( + _i175.GetSamlProviderRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i173.GetSamlProviderOperation( + return _i176.GetSamlProviderOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2384,12 +2394,12 @@ class IamClient { /// Retrieves the specified SSH public key, including metadata about the key. /// /// The SSH public key retrieved by this operation is used only for authenticating the associated IAM user to an CodeCommit repository. For more information about using SSH keys to authenticate to an CodeCommit repository, see [Set up CodeCommit for SSH connections](https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-credentials-ssh.html) in the _CodeCommit User Guide_. - _i3.SmithyOperation<_i174.GetSshPublicKeyResponse> getSshPublicKey( - _i175.GetSshPublicKeyRequest input, { + _i3.SmithyOperation<_i177.GetSshPublicKeyResponse> getSshPublicKey( + _i178.GetSshPublicKeyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i176.GetSshPublicKeyOperation( + return _i179.GetSshPublicKeyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2404,12 +2414,12 @@ class IamClient { /// Retrieves information about the specified server certificate stored in IAM. /// /// For more information about working with server certificates, see [Working with server certificates](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) in the _IAM User Guide_. This topic includes a list of Amazon Web Services services that can use the server certificates that you manage with IAM. - _i3.SmithyOperation<_i177.GetServerCertificateResponse> getServerCertificate( - _i178.GetServerCertificateRequest input, { + _i3.SmithyOperation<_i180.GetServerCertificateResponse> getServerCertificate( + _i181.GetServerCertificateRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i179.GetServerCertificateOperation( + return _i182.GetServerCertificateOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2443,13 +2453,13 @@ class IamClient { /// If you specified `ACTION_LEVEL` granularity when you generated the report, this operation returns service and action last accessed data. This includes the most recent access attempt for each tracked action within a service. Otherwise, this operation returns only service data. /// /// For more information about service and action last accessed data, see [Reducing permissions using service last accessed data](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i180.GetServiceLastAccessedDetailsResponse> + _i3.SmithyOperation<_i183.GetServiceLastAccessedDetailsResponse> getServiceLastAccessedDetails( - _i181.GetServiceLastAccessedDetailsRequest input, { + _i184.GetServiceLastAccessedDetailsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i182.GetServiceLastAccessedDetailsOperation( + return _i185.GetServiceLastAccessedDetailsOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2473,13 +2483,13 @@ class IamClient { /// If the operation fails, the `GetServiceLastAccessedDetailsWithEntities` operation returns the reason that it failed. /// /// By default, the list of associated entities is sorted by date, with the most recent access listed first. - _i3.SmithyOperation<_i183.GetServiceLastAccessedDetailsWithEntitiesResponse> + _i3.SmithyOperation<_i186.GetServiceLastAccessedDetailsWithEntitiesResponse> getServiceLastAccessedDetailsWithEntities( - _i184.GetServiceLastAccessedDetailsWithEntitiesRequest input, { + _i187.GetServiceLastAccessedDetailsWithEntitiesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i185.GetServiceLastAccessedDetailsWithEntitiesOperation( + return _i188.GetServiceLastAccessedDetailsWithEntitiesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2492,13 +2502,13 @@ class IamClient { } /// Retrieves the status of your service-linked role deletion. After you use DeleteServiceLinkedRole to submit a service-linked role for deletion, you can use the `DeletionTaskId` parameter in `GetServiceLinkedRoleDeletionStatus` to check the status of the deletion. If the deletion fails, this operation returns the reason that it failed, if that information is returned by the service. - _i3.SmithyOperation<_i186.GetServiceLinkedRoleDeletionStatusResponse> + _i3.SmithyOperation<_i189.GetServiceLinkedRoleDeletionStatusResponse> getServiceLinkedRoleDeletionStatus( - _i187.GetServiceLinkedRoleDeletionStatusRequest input, { + _i190.GetServiceLinkedRoleDeletionStatusRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i188.GetServiceLinkedRoleDeletionStatusOperation( + return _i191.GetServiceLinkedRoleDeletionStatusOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2513,12 +2523,12 @@ class IamClient { /// Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN. /// /// If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web Services access key ID used to sign the request to this operation. - _i3.SmithyOperation<_i189.GetUserResponse> getUser( - _i190.GetUserRequest input, { + _i3.SmithyOperation<_i192.GetUserResponse> getUser( + _i193.GetUserRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i191.GetUserOperation( + return _i194.GetUserOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2537,12 +2547,12 @@ class IamClient { /// An IAM user can also have managed policies attached to it. To retrieve a managed policy document that is attached to a user, use GetPolicy to determine the policy's default version. Then use GetPolicyVersion to retrieve the policy document. /// /// For more information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i192.GetUserPolicyResponse> getUserPolicy( - _i193.GetUserPolicyRequest input, { + _i3.SmithyOperation<_i195.GetUserPolicyResponse> getUserPolicy( + _i196.GetUserPolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i194.GetUserPolicyOperation( + return _i197.GetUserPolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2562,13 +2572,13 @@ class IamClient { /// /// To ensure the security of your Amazon Web Services account, the secret access key is accessible only during key and user creation. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i195.AccessKeyMetadata>, int, + _i3.PaginatedResult<_i140.BuiltList<_i198.AccessKeyMetadata>, int, String>> listAccessKeys( - _i196.ListAccessKeysRequest input, { + _i199.ListAccessKeysRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i197.ListAccessKeysOperation( + return _i200.ListAccessKeysOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2583,11 +2593,11 @@ class IamClient { /// 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](https://docs.aws.amazon.com/signin/latest/userguide/CreateAccountAlias.html) in the _Amazon Web Services Sign-In User Guide_. _i3.SmithyOperation<_i3.PaginatedResult<_i140.BuiltList, int, String>> listAccountAliases( - _i198.ListAccountAliasesRequest input, { + _i201.ListAccountAliasesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i199.ListAccountAliasesOperation( + return _i202.ListAccountAliasesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2605,13 +2615,13 @@ class IamClient { /// /// You can paginate the results using the `MaxItems` and `Marker` parameters. You can use the `PathPrefix` parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified group (or none that match the specified path prefix), the operation returns an empty list. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i200.AttachedPolicy>, int, + _i3.PaginatedResult<_i140.BuiltList<_i203.AttachedPolicy>, int, String>> listAttachedGroupPolicies( - _i201.ListAttachedGroupPoliciesRequest input, { + _i204.ListAttachedGroupPoliciesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i202.ListAttachedGroupPoliciesOperation( + return _i205.ListAttachedGroupPoliciesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2629,13 +2639,13 @@ class IamClient { /// /// You can paginate the results using the `MaxItems` and `Marker` parameters. You can use the `PathPrefix` parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified role (or none that match the specified path prefix), the operation returns an empty list. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i200.AttachedPolicy>, int, + _i3.PaginatedResult<_i140.BuiltList<_i203.AttachedPolicy>, int, String>> listAttachedRolePolicies( - _i203.ListAttachedRolePoliciesRequest input, { + _i206.ListAttachedRolePoliciesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i204.ListAttachedRolePoliciesOperation( + return _i207.ListAttachedRolePoliciesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2653,13 +2663,13 @@ class IamClient { /// /// You can paginate the results using the `MaxItems` and `Marker` parameters. You can use the `PathPrefix` parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified group (or none that match the specified path prefix), the operation returns an empty list. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i200.AttachedPolicy>, int, + _i3.PaginatedResult<_i140.BuiltList<_i203.AttachedPolicy>, int, String>> listAttachedUserPolicies( - _i205.ListAttachedUserPoliciesRequest input, { + _i208.ListAttachedUserPoliciesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i206.ListAttachedUserPoliciesOperation( + return _i209.ListAttachedUserPoliciesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2677,13 +2687,13 @@ class IamClient { /// /// You can paginate the results using the `MaxItems` and `Marker` parameters. _i3.SmithyOperation< - _i3.PaginatedResult<_i207.ListEntitiesForPolicyResponse, int, String>> + _i3.PaginatedResult<_i210.ListEntitiesForPolicyResponse, int, String>> listEntitiesForPolicy( - _i208.ListEntitiesForPolicyRequest input, { + _i211.ListEntitiesForPolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i209.ListEntitiesForPolicyOperation( + return _i212.ListEntitiesForPolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2702,11 +2712,11 @@ class IamClient { /// You can paginate the results using the `MaxItems` and `Marker` parameters. If there are no inline policies embedded with the specified group, the operation returns an empty list. _i3.SmithyOperation<_i3.PaginatedResult<_i140.BuiltList, int, String>> listGroupPolicies( - _i210.ListGroupPoliciesRequest input, { + _i213.ListGroupPoliciesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i211.ListGroupPoliciesOperation( + return _i214.ListGroupPoliciesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2722,13 +2732,13 @@ class IamClient { /// /// You can paginate the results using the `MaxItems` and `Marker` parameters. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i212.Group>, int, String>> + _i3.PaginatedResult<_i140.BuiltList<_i215.Group>, int, String>> listGroups( - _i213.ListGroupsRequest input, { + _i216.ListGroupsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i214.ListGroupsOperation( + return _i217.ListGroupsOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2744,13 +2754,13 @@ class IamClient { /// /// You can paginate the results using the `MaxItems` and `Marker` parameters. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i212.Group>, int, String>> + _i3.PaginatedResult<_i140.BuiltList<_i215.Group>, int, String>> listGroupsForUser( - _i215.ListGroupsForUserRequest input, { + _i218.ListGroupsForUserRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i216.ListGroupsForUserOperation( + return _i219.ListGroupsForUserOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2763,19 +2773,20 @@ class IamClient { } /// Lists the tags that are attached to the specified IAM instance profile. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i217.ListInstanceProfileTagsResponse> + _i3.SmithyOperation< + _i3.PaginatedResult<_i140.BuiltList<_i220.Tag>, int, String>> listInstanceProfileTags( - _i218.ListInstanceProfileTagsRequest input, { + _i221.ListInstanceProfileTagsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i219.ListInstanceProfileTagsOperation( + return _i222.ListInstanceProfileTagsOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( + ).runPaginated( input, client: client ?? _client, ); @@ -2787,13 +2798,13 @@ class IamClient { /// /// You can paginate the results using the `MaxItems` and `Marker` parameters. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i220.InstanceProfile>, int, + _i3.PaginatedResult<_i140.BuiltList<_i223.InstanceProfile>, int, String>> listInstanceProfiles( - _i221.ListInstanceProfilesRequest input, { + _i224.ListInstanceProfilesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i222.ListInstanceProfilesOperation( + return _i225.ListInstanceProfilesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2809,13 +2820,13 @@ class IamClient { /// /// You can paginate the results using the `MaxItems` and `Marker` parameters. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i220.InstanceProfile>, int, + _i3.PaginatedResult<_i140.BuiltList<_i223.InstanceProfile>, int, String>> listInstanceProfilesForRole( - _i223.ListInstanceProfilesForRoleRequest input, { + _i226.ListInstanceProfilesForRoleRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i224.ListInstanceProfilesForRoleOperation( + return _i227.ListInstanceProfilesForRoleOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2828,18 +2839,20 @@ class IamClient { } /// Lists the tags that are attached to the specified IAM virtual multi-factor authentication (MFA) device. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i225.ListMfaDeviceTagsResponse> listMfaDeviceTags( - _i226.ListMfaDeviceTagsRequest input, { + _i3.SmithyOperation< + _i3.PaginatedResult<_i140.BuiltList<_i220.Tag>, int, String>> + listMfaDeviceTags( + _i228.ListMfaDeviceTagsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i227.ListMfaDeviceTagsOperation( + return _i229.ListMfaDeviceTagsOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( + ).runPaginated( input, client: client ?? _client, ); @@ -2849,13 +2862,13 @@ class IamClient { /// /// You can paginate the results using the `MaxItems` and `Marker` parameters. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i228.MfaDevice>, int, String>> + _i3.PaginatedResult<_i140.BuiltList<_i230.MfaDevice>, int, String>> listMfaDevices( - _i229.ListMfaDevicesRequest input, { + _i231.ListMfaDevicesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i230.ListMfaDevicesOperation( + return _i232.ListMfaDevicesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2870,19 +2883,20 @@ class IamClient { /// Lists the tags that are attached to the specified OpenID Connect (OIDC)-compatible identity provider. The returned list of tags is sorted by tag key. For more information, see [About web identity federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html). /// /// For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i231.ListOpenIdConnectProviderTagsResponse> + _i3.SmithyOperation< + _i3.PaginatedResult<_i140.BuiltList<_i220.Tag>, int, String>> listOpenIdConnectProviderTags( - _i232.ListOpenIdConnectProviderTagsRequest input, { + _i233.ListOpenIdConnectProviderTagsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i233.ListOpenIdConnectProviderTagsOperation( + return _i234.ListOpenIdConnectProviderTagsOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( + ).runPaginated( input, client: client ?? _client, ); @@ -2891,13 +2905,13 @@ class IamClient { /// Lists information about the IAM OpenID Connect (OIDC) provider resource objects defined in the Amazon Web Services account. /// /// IAM resource-listing operations return a subset of the available attributes for the resource. For example, this operation does not return tags, even though they are an attribute of the returned object. To view all of the information for an OIDC provider, see GetOpenIDConnectProvider. - _i3.SmithyOperation<_i234.ListOpenIdConnectProvidersResponse> + _i3.SmithyOperation<_i235.ListOpenIdConnectProvidersResponse> listOpenIdConnectProviders( - _i235.ListOpenIdConnectProvidersRequest input, { + _i236.ListOpenIdConnectProvidersRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i236.ListOpenIdConnectProvidersOperation( + return _i237.ListOpenIdConnectProvidersOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2919,13 +2933,13 @@ class IamClient { /// /// IAM resource-listing operations return a subset of the available attributes for the resource. For example, this operation does not return tags, even though they are an attribute of the returned object. To view all of the information for a customer manged policy, see GetPolicy. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i237.Policy>, int, String>> + _i3.PaginatedResult<_i140.BuiltList<_i238.Policy>, int, String>> listPolicies( - _i238.ListPoliciesRequest input, { + _i239.ListPoliciesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i239.ListPoliciesOperation( + return _i240.ListPoliciesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2953,13 +2967,13 @@ class IamClient { /// For each managed policy, this operation returns the ARN and policy name. For each inline policy, it returns the policy name and the entity to which it is attached. Inline policies do not have an ARN. For more information about these policy types, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html) in the _IAM User Guide_. /// /// Policies that are attached to users and roles as permissions boundaries are not returned. To view which managed policy is currently used to set the permissions boundary for a user or role, use the GetUser or GetRole operations. - _i3.SmithyOperation<_i240.ListPoliciesGrantingServiceAccessResponse> + _i3.SmithyOperation<_i241.ListPoliciesGrantingServiceAccessResponse> listPoliciesGrantingServiceAccess( - _i241.ListPoliciesGrantingServiceAccessRequest input, { + _i242.ListPoliciesGrantingServiceAccessRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i242.ListPoliciesGrantingServiceAccessOperation( + return _i243.ListPoliciesGrantingServiceAccessOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -2972,7 +2986,9 @@ class IamClient { } /// Lists the tags that are attached to the specified IAM customer managed policy. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i243.ListPolicyTagsResponse> listPolicyTags( + _i3.SmithyOperation< + _i3.PaginatedResult<_i140.BuiltList<_i220.Tag>, int, String>> + listPolicyTags( _i244.ListPolicyTagsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, @@ -2983,7 +2999,7 @@ class IamClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( + ).runPaginated( input, client: client ?? _client, ); @@ -3035,18 +3051,20 @@ class IamClient { } /// Lists the tags that are attached to the specified role. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i251.ListRoleTagsResponse> listRoleTags( - _i252.ListRoleTagsRequest input, { + _i3.SmithyOperation< + _i3.PaginatedResult<_i140.BuiltList<_i220.Tag>, int, String>> + listRoleTags( + _i251.ListRoleTagsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i253.ListRoleTagsOperation( + return _i252.ListRoleTagsOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( + ).runPaginated( input, client: client ?? _client, ); @@ -3067,12 +3085,12 @@ class IamClient { /// /// You can paginate the results using the `MaxItems` and `Marker` parameters. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i254.Role>, int, String>> listRoles( - _i255.ListRolesRequest input, { + _i3.PaginatedResult<_i140.BuiltList<_i253.Role>, int, String>> listRoles( + _i254.ListRolesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i256.ListRolesOperation( + return _i255.ListRolesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3087,18 +3105,20 @@ class IamClient { /// Lists the tags that are attached to the specified Security Assertion Markup Language (SAML) identity provider. The returned list of tags is sorted by tag key. For more information, see [About SAML 2.0-based federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html). /// /// For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i257.ListSamlProviderTagsResponse> listSamlProviderTags( - _i258.ListSamlProviderTagsRequest input, { + _i3.SmithyOperation< + _i3.PaginatedResult<_i140.BuiltList<_i220.Tag>, int, String>> + listSamlProviderTags( + _i256.ListSamlProviderTagsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i259.ListSamlProviderTagsOperation( + return _i257.ListSamlProviderTagsOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( + ).runPaginated( input, client: client ?? _client, ); @@ -3107,12 +3127,12 @@ class IamClient { /// Lists the SAML provider resource objects defined in IAM in the account. IAM resource-listing operations return a subset of the available attributes for the resource. For example, this operation does not return tags, even though they are an attribute of the returned object. To view all of the information for a SAML provider, see GetSAMLProvider. /// /// This operation requires [Signature Version 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). - _i3.SmithyOperation<_i260.ListSamlProvidersResponse> listSamlProviders( - _i261.ListSamlProvidersRequest input, { + _i3.SmithyOperation<_i258.ListSamlProvidersResponse> listSamlProviders( + _i259.ListSamlProvidersRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i262.ListSamlProvidersOperation( + return _i260.ListSamlProvidersOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3130,13 +3150,13 @@ class IamClient { /// /// Although each user is limited to a small number of keys, you can still paginate the results using the `MaxItems` and `Marker` parameters. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i263.SshPublicKeyMetadata>, int, + _i3.PaginatedResult<_i140.BuiltList<_i261.SshPublicKeyMetadata>, int, String>> listSshPublicKeys( - _i264.ListSshPublicKeysRequest input, { + _i262.ListSshPublicKeysRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i265.ListSshPublicKeysOperation( + return _i263.ListSshPublicKeysOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3151,19 +3171,20 @@ class IamClient { /// Lists the tags that are attached to the specified IAM server certificate. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. /// /// For certificates in a Region supported by Certificate Manager (ACM), we recommend that you don't use IAM server certificates. Instead, use ACM to provision, manage, and deploy your server certificates. For more information about IAM server certificates, [Working with server certificates](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i266.ListServerCertificateTagsResponse> + _i3.SmithyOperation< + _i3.PaginatedResult<_i140.BuiltList<_i220.Tag>, int, String>> listServerCertificateTags( - _i267.ListServerCertificateTagsRequest input, { + _i264.ListServerCertificateTagsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i268.ListServerCertificateTagsOperation( + return _i265.ListServerCertificateTagsOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( + ).runPaginated( input, client: client ?? _client, ); @@ -3177,13 +3198,13 @@ class IamClient { /// /// IAM resource-listing operations return a subset of the available attributes for the resource. For example, this operation does not return tags, even though they are an attribute of the returned object. To view all of the information for a servercertificate, see GetServerCertificate. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i269.ServerCertificateMetadata>, int, + _i3.PaginatedResult<_i140.BuiltList<_i266.ServerCertificateMetadata>, int, String>> listServerCertificates( - _i270.ListServerCertificatesRequest input, { + _i267.ListServerCertificatesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i271.ListServerCertificatesOperation( + return _i268.ListServerCertificatesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3196,13 +3217,13 @@ class IamClient { } /// Returns information about the service-specific credentials associated with the specified IAM user. If none exists, the operation returns an empty list. The service-specific credentials returned by this operation are used only for authenticating the IAM user to a specific service. For more information about using service-specific credentials to authenticate to an Amazon Web Services service, see [Set up service-specific credentials](https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-gc.html) in the CodeCommit User Guide. - _i3.SmithyOperation<_i272.ListServiceSpecificCredentialsResponse> + _i3.SmithyOperation<_i269.ListServiceSpecificCredentialsResponse> listServiceSpecificCredentials( - _i273.ListServiceSpecificCredentialsRequest input, { + _i270.ListServiceSpecificCredentialsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i274.ListServiceSpecificCredentialsOperation( + return _i271.ListServiceSpecificCredentialsOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3220,13 +3241,13 @@ class IamClient { /// /// If the `UserName` field is not specified, the user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request for this operation. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i275.SigningCertificate>, int, + _i3.PaginatedResult<_i140.BuiltList<_i272.SigningCertificate>, int, String>> listSigningCertificates( - _i276.ListSigningCertificatesRequest input, { + _i273.ListSigningCertificatesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i277.ListSigningCertificatesOperation( + return _i274.ListSigningCertificatesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3245,11 +3266,11 @@ class IamClient { /// You can paginate the results using the `MaxItems` and `Marker` parameters. If there are no inline policies embedded with the specified user, the operation returns an empty list. _i3.SmithyOperation<_i3.PaginatedResult<_i140.BuiltList, int, String>> listUserPolicies( - _i278.ListUserPoliciesRequest input, { + _i275.ListUserPoliciesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i279.ListUserPoliciesOperation( + return _i276.ListUserPoliciesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3263,13 +3284,13 @@ class IamClient { /// Lists the tags that are attached to the specified IAM user. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i280.Tag>, int, String>> + _i3.PaginatedResult<_i140.BuiltList<_i220.Tag>, int, String>> listUserTags( - _i281.ListUserTagsRequest input, { + _i277.ListUserTagsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i282.ListUserTagsOperation( + return _i278.ListUserTagsOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3295,11 +3316,11 @@ class IamClient { /// You can paginate the results using the `MaxItems` and `Marker` parameters. _i3.SmithyOperation< _i3.PaginatedResult<_i140.BuiltList<_i141.User>, int, String>> listUsers( - _i283.ListUsersRequest input, { + _i279.ListUsersRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i284.ListUsersOperation( + return _i280.ListUsersOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3317,13 +3338,13 @@ class IamClient { /// /// You can paginate the results using the `MaxItems` and `Marker` parameters. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i285.VirtualMfaDevice>, int, + _i3.PaginatedResult<_i140.BuiltList<_i281.VirtualMfaDevice>, int, String>> listVirtualMfaDevices( - _i286.ListVirtualMfaDevicesRequest input, { + _i282.ListVirtualMfaDevicesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i287.ListVirtualMfaDevicesOperation( + return _i283.ListVirtualMfaDevicesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3337,17 +3358,17 @@ class IamClient { /// Adds or updates an inline policy document that is embedded in the specified IAM group. /// - /// A user can also have managed policies attached to it. To attach a managed policy to a group, use AttachGroupPolicy. To create a new managed policy, use CreatePolicy. For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. + /// A user can also have managed policies attached to it. To attach a managed policy to a group, use [`AttachGroupPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachGroupPolicy.html) . To create a new managed policy, use [`CreatePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html) . For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// For information about the maximum number of inline policies that you can embed in a group, see [IAM and STS quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the _IAM User Guide_. /// /// Because policy documents can be large, you should use POST rather than GET when calling `PutGroupPolicy`. For general information about using the Query API with IAM, see [Making query requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) in the _IAM User Guide_. _i3.SmithyOperation putGroupPolicy( - _i288.PutGroupPolicyRequest input, { + _i284.PutGroupPolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i289.PutGroupPolicyOperation( + return _i285.PutGroupPolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3365,11 +3386,11 @@ class IamClient { /// /// Policies used as permissions boundaries do not provide permissions. You must also attach a permissions policy to the role. To learn how the effective permissions for a role are evaluated, see [IAM JSON policy evaluation logic](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html) in the IAM User Guide. _i3.SmithyOperation putRolePermissionsBoundary( - _i290.PutRolePermissionsBoundaryRequest input, { + _i286.PutRolePermissionsBoundaryRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i291.PutRolePermissionsBoundaryOperation( + return _i287.PutRolePermissionsBoundaryOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3383,19 +3404,19 @@ class IamClient { /// Adds or updates an inline policy document that is embedded in the specified IAM role. /// - /// When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy. For more information about IAM roles, see [Using roles to delegate permissions and federate identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). + /// When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using [`CreateRole`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) . You can update a role's trust policy using [`UpdateAssumerolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAssumeRolePolicy.html) . For more information about IAM roles, see [Using roles to delegate permissions and federate identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). /// - /// A role can also have a managed policy attached to it. To attach a managed policy to a role, use AttachRolePolicy. To create a new managed policy, use CreatePolicy. For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. + /// A role can also have a managed policy attached to it. To attach a managed policy to a role, use [`AttachRolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachRolePolicy.html) . To create a new managed policy, use [`CreatePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html) . For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// For information about the maximum number of inline policies that you can embed with a role, see [IAM and STS quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the _IAM User Guide_. /// /// Because policy documents can be large, you should use POST rather than GET when calling `PutRolePolicy`. For general information about using the Query API with IAM, see [Making query requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) in the _IAM User Guide_. _i3.SmithyOperation putRolePolicy( - _i292.PutRolePolicyRequest input, { + _i288.PutRolePolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i293.PutRolePolicyOperation( + return _i289.PutRolePolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3411,11 +3432,11 @@ class IamClient { /// /// Policies that are used as permissions boundaries do not provide permissions. You must also attach a permissions policy to the user. To learn how the effective permissions for a user are evaluated, see [IAM JSON policy evaluation logic](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html) in the IAM User Guide. _i3.SmithyOperation putUserPermissionsBoundary( - _i294.PutUserPermissionsBoundaryRequest input, { + _i290.PutUserPermissionsBoundaryRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i295.PutUserPermissionsBoundaryOperation( + return _i291.PutUserPermissionsBoundaryOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3429,17 +3450,17 @@ class IamClient { /// Adds or updates an inline policy document that is embedded in the specified IAM user. /// - /// An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AttachUserPolicy. To create a new managed policy, use CreatePolicy. For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. + /// An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use [`AttachUserPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachUserPolicy.html) . To create a new managed policy, use [`CreatePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html) . For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// For information about the maximum number of inline policies that you can embed in a user, see [IAM and STS quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the _IAM User Guide_. /// /// Because policy documents can be large, you should use POST rather than GET when calling `PutUserPolicy`. For general information about using the Query API with IAM, see [Making query requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) in the _IAM User Guide_. _i3.SmithyOperation putUserPolicy( - _i296.PutUserPolicyRequest input, { + _i292.PutUserPolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i297.PutUserPolicyOperation( + return _i293.PutUserPolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3455,11 +3476,11 @@ class IamClient { /// /// This operation is idempotent; it does not fail or return an error if you try to remove a client ID that does not exist. _i3.SmithyOperation removeClientIdFromOpenIdConnectProvider( - _i298.RemoveClientIdFromOpenIdConnectProviderRequest input, { + _i294.RemoveClientIdFromOpenIdConnectProviderRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i299.RemoveClientIdFromOpenIdConnectProviderOperation( + return _i295.RemoveClientIdFromOpenIdConnectProviderOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3477,11 +3498,11 @@ class IamClient { /// /// For more information about IAM roles, see [Working with roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). For more information about instance profiles, see [About instance profiles](https://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). _i3.SmithyOperation removeRoleFromInstanceProfile( - _i300.RemoveRoleFromInstanceProfileRequest input, { + _i296.RemoveRoleFromInstanceProfileRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i301.RemoveRoleFromInstanceProfileOperation( + return _i297.RemoveRoleFromInstanceProfileOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3495,11 +3516,11 @@ class IamClient { /// Removes the specified user from the specified group. _i3.SmithyOperation removeUserFromGroup( - _i302.RemoveUserFromGroupRequest input, { + _i298.RemoveUserFromGroupRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i303.RemoveUserFromGroupOperation( + return _i299.RemoveUserFromGroupOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3512,13 +3533,13 @@ class IamClient { } /// Resets the password for a service-specific credential. The new password is Amazon Web Services generated and cryptographically strong. It cannot be configured by the user. Resetting the password immediately invalidates the previous password associated with this user. - _i3.SmithyOperation<_i304.ResetServiceSpecificCredentialResponse> + _i3.SmithyOperation<_i300.ResetServiceSpecificCredentialResponse> resetServiceSpecificCredential( - _i305.ResetServiceSpecificCredentialRequest input, { + _i301.ResetServiceSpecificCredentialRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i306.ResetServiceSpecificCredentialOperation( + return _i302.ResetServiceSpecificCredentialOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3534,11 +3555,11 @@ class IamClient { /// /// For more information about creating and working with virtual MFA devices, see [Using a virtual MFA device](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_VirtualMFA.html) in the _IAM User Guide_. _i3.SmithyOperation resyncMfaDevice( - _i307.ResyncMfaDeviceRequest input, { + _i303.ResyncMfaDeviceRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i308.ResyncMfaDeviceOperation( + return _i304.ResyncMfaDeviceOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3556,11 +3577,11 @@ class IamClient { /// /// For information about managed policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. _i3.SmithyOperation setDefaultPolicyVersion( - _i309.SetDefaultPolicyVersionRequest input, { + _i305.SetDefaultPolicyVersionRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i310.SetDefaultPolicyVersionOperation( + return _i306.SetDefaultPolicyVersionOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3580,11 +3601,11 @@ class IamClient { /// /// To view the current session token version, see the `GlobalEndpointTokenVersion` entry in the response of the GetAccountSummary operation. _i3.SmithyOperation setSecurityTokenServicePreferences( - _i311.SetSecurityTokenServicePreferencesRequest input, { + _i307.SetSecurityTokenServicePreferencesRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i312.SetSecurityTokenServicePreferencesOperation( + return _i308.SetSecurityTokenServicePreferencesOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3608,13 +3629,13 @@ class IamClient { /// /// The IAM policy simulator evaluates statements in the identity-based policy and the inputs that you provide during simulation. The policy simulator results can differ from your live Amazon Web Services environment. We recommend that you check your policies against your live Amazon Web Services environment after testing using the policy simulator to confirm that you have the desired results. For more information about using the policy simulator, see [Testing IAM policies with the IAM policy simulator](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_testing-policies.html) in the _IAM User Guide_. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i313.EvaluationResult>, int, + _i3.PaginatedResult<_i140.BuiltList<_i309.EvaluationResult>, int, String>> simulateCustomPolicy( - _i314.SimulateCustomPolicyRequest input, { + _i310.SimulateCustomPolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i315.SimulateCustomPolicyOperation( + return _i311.SimulateCustomPolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3642,13 +3663,13 @@ class IamClient { /// /// The IAM policy simulator evaluates statements in the identity-based policy and the inputs that you provide during simulation. The policy simulator results can differ from your live Amazon Web Services environment. We recommend that you check your policies against your live Amazon Web Services environment after testing using the policy simulator to confirm that you have the desired results. For more information about using the policy simulator, see [Testing IAM policies with the IAM policy simulator](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_testing-policies.html) in the _IAM User Guide_. _i3.SmithyOperation< - _i3.PaginatedResult<_i140.BuiltList<_i313.EvaluationResult>, int, + _i3.PaginatedResult<_i140.BuiltList<_i309.EvaluationResult>, int, String>> simulatePrincipalPolicy( - _i316.SimulatePrincipalPolicyRequest input, { + _i312.SimulatePrincipalPolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i317.SimulatePrincipalPolicyOperation( + return _i313.SimulatePrincipalPolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3673,11 +3694,11 @@ class IamClient { /// /// * Amazon Web Services always interprets the tag `Value` as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code. _i3.SmithyOperation tagInstanceProfile( - _i318.TagInstanceProfileRequest input, { + _i314.TagInstanceProfileRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i319.TagInstanceProfileOperation( + return _i315.TagInstanceProfileOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3702,11 +3723,11 @@ class IamClient { /// /// * Amazon Web Services always interprets the tag `Value` as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code. _i3.SmithyOperation tagMfaDevice( - _i320.TagMfaDeviceRequest input, { + _i316.TagMfaDeviceRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i321.TagMfaDeviceOperation( + return _i317.TagMfaDeviceOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3731,11 +3752,11 @@ class IamClient { /// /// * Amazon Web Services always interprets the tag `Value` as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code. _i3.SmithyOperation tagOpenIdConnectProvider( - _i322.TagOpenIdConnectProviderRequest input, { + _i318.TagOpenIdConnectProviderRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i323.TagOpenIdConnectProviderOperation( + return _i319.TagOpenIdConnectProviderOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3760,11 +3781,11 @@ class IamClient { /// /// * Amazon Web Services always interprets the tag `Value` as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code. _i3.SmithyOperation tagPolicy( - _i324.TagPolicyRequest input, { + _i320.TagPolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i325.TagPolicyOperation( + return _i321.TagPolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3794,11 +3815,11 @@ class IamClient { /// /// For more information about tagging, see [Tagging IAM identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. _i3.SmithyOperation tagRole( - _i326.TagRoleRequest input, { + _i322.TagRoleRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i327.TagRoleOperation( + return _i323.TagRoleOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3823,11 +3844,11 @@ class IamClient { /// /// * Amazon Web Services always interprets the tag `Value` as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code. _i3.SmithyOperation tagSamlProvider( - _i328.TagSamlProviderRequest input, { + _i324.TagSamlProviderRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i329.TagSamlProviderOperation( + return _i325.TagSamlProviderOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3856,11 +3877,11 @@ class IamClient { /// /// * Amazon Web Services always interprets the tag `Value` as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code. _i3.SmithyOperation tagServerCertificate( - _i330.TagServerCertificateRequest input, { + _i326.TagServerCertificateRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i331.TagServerCertificateOperation( + return _i327.TagServerCertificateOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3890,11 +3911,11 @@ class IamClient { /// /// For more information about tagging, see [Tagging IAM identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. _i3.SmithyOperation tagUser( - _i332.TagUserRequest input, { + _i328.TagUserRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i333.TagUserOperation( + return _i329.TagUserOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3908,11 +3929,11 @@ class IamClient { /// Removes the specified tags from the IAM instance profile. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. _i3.SmithyOperation untagInstanceProfile( - _i334.UntagInstanceProfileRequest input, { + _i330.UntagInstanceProfileRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i335.UntagInstanceProfileOperation( + return _i331.UntagInstanceProfileOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3926,11 +3947,11 @@ class IamClient { /// Removes the specified tags from the IAM virtual multi-factor authentication (MFA) device. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. _i3.SmithyOperation untagMfaDevice( - _i336.UntagMfaDeviceRequest input, { + _i332.UntagMfaDeviceRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i337.UntagMfaDeviceOperation( + return _i333.UntagMfaDeviceOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3944,11 +3965,11 @@ class IamClient { /// Removes the specified tags from the specified OpenID Connect (OIDC)-compatible identity provider in IAM. For more information about OIDC providers, see [About web identity federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html). For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. _i3.SmithyOperation untagOpenIdConnectProvider( - _i338.UntagOpenIdConnectProviderRequest input, { + _i334.UntagOpenIdConnectProviderRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i339.UntagOpenIdConnectProviderOperation( + return _i335.UntagOpenIdConnectProviderOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3962,11 +3983,11 @@ class IamClient { /// Removes the specified tags from the customer managed policy. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. _i3.SmithyOperation untagPolicy( - _i340.UntagPolicyRequest input, { + _i336.UntagPolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i341.UntagPolicyOperation( + return _i337.UntagPolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3980,11 +4001,11 @@ class IamClient { /// Removes the specified tags from the role. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. _i3.SmithyOperation untagRole( - _i342.UntagRoleRequest input, { + _i338.UntagRoleRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i343.UntagRoleOperation( + return _i339.UntagRoleOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -3998,11 +4019,11 @@ class IamClient { /// Removes the specified tags from the specified Security Assertion Markup Language (SAML) identity provider in IAM. For more information about these providers, see [About web identity federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html). For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. _i3.SmithyOperation untagSamlProvider( - _i344.UntagSamlProviderRequest input, { + _i340.UntagSamlProviderRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i345.UntagSamlProviderOperation( + return _i341.UntagSamlProviderOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4018,11 +4039,11 @@ class IamClient { /// /// For certificates in a Region supported by Certificate Manager (ACM), we recommend that you don't use IAM server certificates. Instead, use ACM to provision, manage, and deploy your server certificates. For more information about IAM server certificates, [Working with server certificates](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) in the _IAM User Guide_. _i3.SmithyOperation untagServerCertificate( - _i346.UntagServerCertificateRequest input, { + _i342.UntagServerCertificateRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i347.UntagServerCertificateOperation( + return _i343.UntagServerCertificateOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4036,11 +4057,11 @@ class IamClient { /// Removes the specified tags from the user. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. _i3.SmithyOperation untagUser( - _i348.UntagUserRequest input, { + _i344.UntagUserRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i349.UntagUserOperation( + return _i345.UntagUserOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4058,11 +4079,11 @@ class IamClient { /// /// For information about rotating keys, see [Managing keys and certificates](https://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingCredentials.html) in the _IAM User Guide_. _i3.SmithyOperation updateAccessKey( - _i350.UpdateAccessKeyRequest input, { + _i346.UpdateAccessKeyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i351.UpdateAccessKeyOperation( + return _i347.UpdateAccessKeyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4080,11 +4101,11 @@ class IamClient { /// /// For more information about using a password policy, see [Managing an IAM password policy](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html) in the _IAM User Guide_. _i3.SmithyOperation updateAccountPasswordPolicy( - _i352.UpdateAccountPasswordPolicyRequest input, { + _i348.UpdateAccountPasswordPolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i353.UpdateAccountPasswordPolicyOperation( + return _i349.UpdateAccountPasswordPolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4098,11 +4119,11 @@ class IamClient { /// Updates the policy that grants an IAM entity permission to assume a role. This is typically referred to as the "role trust policy". For more information about roles, see [Using roles to delegate permissions and federate identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). _i3.SmithyOperation updateAssumeRolePolicy( - _i354.UpdateAssumeRolePolicyRequest input, { + _i350.UpdateAssumeRolePolicyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i355.UpdateAssumeRolePolicyOperation( + return _i351.UpdateAssumeRolePolicyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4120,11 +4141,11 @@ class IamClient { /// /// The person making the request (the principal), must have permission to change the role group with the old name and the new name. For example, to change the group named `Managers` to `MGRs`, the principal must have a policy that allows them to update both groups. If the principal has permission to update the `Managers` group, but not the `MGRs` group, then the update fails. For more information about permissions, see [Access management](https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html). _i3.SmithyOperation updateGroup( - _i356.UpdateGroupRequest input, { + _i352.UpdateGroupRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i357.UpdateGroupOperation( + return _i353.UpdateGroupOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4140,11 +4161,11 @@ class IamClient { /// /// For more information about modifying passwords, see [Managing passwords](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) in the _IAM User Guide_. _i3.SmithyOperation updateLoginProfile( - _i358.UpdateLoginProfileRequest input, { + _i354.UpdateLoginProfileRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i359.UpdateLoginProfileOperation( + return _i355.UpdateLoginProfileOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4166,11 +4187,11 @@ class IamClient { /// /// 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. _i3.SmithyOperation updateOpenIdConnectProviderThumbprint( - _i360.UpdateOpenIdConnectProviderThumbprintRequest input, { + _i356.UpdateOpenIdConnectProviderThumbprintRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i361.UpdateOpenIdConnectProviderThumbprintOperation( + return _i357.UpdateOpenIdConnectProviderThumbprintOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4183,12 +4204,12 @@ class IamClient { } /// Updates the description or maximum session duration setting of a role. - _i3.SmithyOperation<_i362.UpdateRoleResponse> updateRole( - _i363.UpdateRoleRequest input, { + _i3.SmithyOperation<_i358.UpdateRoleResponse> updateRole( + _i359.UpdateRoleRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i364.UpdateRoleOperation( + return _i360.UpdateRoleOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4203,13 +4224,13 @@ class IamClient { /// Use UpdateRole instead. /// /// Modifies only the description of a role. This operation performs the same function as the `Description` parameter in the `UpdateRole` operation. - _i3.SmithyOperation<_i365.UpdateRoleDescriptionResponse> + _i3.SmithyOperation<_i361.UpdateRoleDescriptionResponse> updateRoleDescription( - _i366.UpdateRoleDescriptionRequest input, { + _i362.UpdateRoleDescriptionRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i367.UpdateRoleDescriptionOperation( + return _i363.UpdateRoleDescriptionOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4224,12 +4245,12 @@ class IamClient { /// Updates the metadata document for an existing SAML provider resource object. /// /// This operation requires [Signature Version 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). - _i3.SmithyOperation<_i368.UpdateSamlProviderResponse> updateSamlProvider( - _i369.UpdateSamlProviderRequest input, { + _i3.SmithyOperation<_i364.UpdateSamlProviderResponse> updateSamlProvider( + _i365.UpdateSamlProviderRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i370.UpdateSamlProviderOperation( + return _i366.UpdateSamlProviderOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4245,11 +4266,11 @@ class IamClient { /// /// The SSH public key affected by this operation is used only for authenticating the associated IAM user to an CodeCommit repository. For more information about using SSH keys to authenticate to an CodeCommit repository, see [Set up CodeCommit for SSH connections](https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-credentials-ssh.html) in the _CodeCommit User Guide_. _i3.SmithyOperation updateSshPublicKey( - _i371.UpdateSshPublicKeyRequest input, { + _i367.UpdateSshPublicKeyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i372.UpdateSshPublicKeyOperation( + return _i368.UpdateSshPublicKeyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4269,11 +4290,11 @@ class IamClient { /// /// The person making the request (the principal), must have permission to change the server certificate with the old name and the new name. For example, to change the certificate named `ProductionCert` to `ProdCert`, the principal must have a policy that allows them to update both certificates. If the principal has permission to update the `ProductionCert` group, but not the `ProdCert` certificate, then the update fails. For more information about permissions, see [Access management](https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) in the _IAM User Guide_. _i3.SmithyOperation updateServerCertificate( - _i373.UpdateServerCertificateRequest input, { + _i369.UpdateServerCertificateRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i374.UpdateServerCertificateOperation( + return _i370.UpdateServerCertificateOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4287,11 +4308,11 @@ class IamClient { /// Sets the status of a service-specific credential to `Active` or `Inactive`. Service-specific credentials that are inactive cannot be used for authentication to the service. This operation can be used to disable a user's service-specific credential as part of a credential rotation work flow. _i3.SmithyOperation updateServiceSpecificCredential( - _i375.UpdateServiceSpecificCredentialRequest input, { + _i371.UpdateServiceSpecificCredentialRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i376.UpdateServiceSpecificCredentialOperation( + return _i372.UpdateServiceSpecificCredentialOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4307,11 +4328,11 @@ class IamClient { /// /// If the `UserName` field is not specified, the user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users. _i3.SmithyOperation updateSigningCertificate( - _i377.UpdateSigningCertificateRequest input, { + _i373.UpdateSigningCertificateRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i378.UpdateSigningCertificateOperation( + return _i374.UpdateSigningCertificateOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4329,11 +4350,11 @@ class IamClient { /// /// To change a user name, the requester must have appropriate permissions on both the source object and the target object. For example, to change Bob to Robert, the entity making the request must have permission on Bob and Robert, or must have permission on all (*). For more information about permissions, see [Permissions and policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html). _i3.SmithyOperation updateUser( - _i379.UpdateUserRequest input, { + _i375.UpdateUserRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i380.UpdateUserOperation( + return _i376.UpdateUserOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4348,12 +4369,12 @@ class IamClient { /// Uploads an SSH public key and associates it with the specified IAM user. /// /// The SSH public key uploaded by this operation can be used only for authenticating the associated IAM user to an CodeCommit repository. For more information about using SSH keys to authenticate to an CodeCommit repository, see [Set up CodeCommit for SSH connections](https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-credentials-ssh.html) in the _CodeCommit User Guide_. - _i3.SmithyOperation<_i381.UploadSshPublicKeyResponse> uploadSshPublicKey( - _i382.UploadSshPublicKeyRequest input, { + _i3.SmithyOperation<_i377.UploadSshPublicKeyResponse> uploadSshPublicKey( + _i378.UploadSshPublicKeyRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i383.UploadSshPublicKeyOperation( + return _i379.UploadSshPublicKeyOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4374,13 +4395,13 @@ class IamClient { /// For information about the number of server certificates you can upload, see [IAM and STS quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the _IAM User Guide_. /// /// Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling `UploadServerCertificate`. For information about setting up signatures and authorization through the API, see [Signing Amazon Web Services API requests](https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) in the _Amazon Web Services General Reference_. For general information about using the Query API with IAM, see [Calling the API by making HTTP query requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/programming.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i384.UploadServerCertificateResponse> + _i3.SmithyOperation<_i380.UploadServerCertificateResponse> uploadServerCertificate( - _i385.UploadServerCertificateRequest input, { + _i381.UploadServerCertificateRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i386.UploadServerCertificateOperation( + return _i382.UploadServerCertificateOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, @@ -4399,13 +4420,13 @@ class IamClient { /// If the `UserName` is not specified, the IAM user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users. /// /// Because the body of an X.509 certificate can be large, you should use POST rather than GET when calling `UploadSigningCertificate`. For information about setting up signatures and authorization through the API, see [Signing Amazon Web Services API requests](https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) in the _Amazon Web Services General Reference_. For general information about using the Query API with IAM, see [Making query requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) in the _IAM User Guide_. - _i3.SmithyOperation<_i387.UploadSigningCertificateResponse> + _i3.SmithyOperation<_i383.UploadSigningCertificateResponse> uploadSigningCertificate( - _i388.UploadSigningCertificateRequest input, { + _i384.UploadSigningCertificateRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, }) { - return _i389.UploadSigningCertificateOperation( + return _i385.UploadSigningCertificateOperation( region: _region, baseUri: _baseUri, credentialsProvider: credentialsProvider ?? _credentialsProvider, diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_request.dart new file mode 100644 index 0000000000..63eef37429 --- /dev/null +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_request.dart @@ -0,0 +1,152 @@ +// Generated with smithy-dart 0.3.1. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names + +library smoke_test.iam.model.get_mfa_device_request; // ignore_for_file: no_leading_underscores_for_library_prefixes + +import 'package:aws_common/aws_common.dart' as _i2; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:smithy/smithy.dart' as _i1; + +part 'get_mfa_device_request.g.dart'; + +abstract class GetMfaDeviceRequest + with + _i1.HttpInput, + _i2.AWSEquatable + implements Built { + factory GetMfaDeviceRequest({ + required String serialNumber, + String? userName, + }) { + return _$GetMfaDeviceRequest._( + serialNumber: serialNumber, + userName: userName, + ); + } + + factory GetMfaDeviceRequest.build( + [void Function(GetMfaDeviceRequestBuilder) updates]) = + _$GetMfaDeviceRequest; + + const GetMfaDeviceRequest._(); + + factory GetMfaDeviceRequest.fromRequest( + GetMfaDeviceRequest payload, + _i2.AWSBaseHttpRequest request, { + Map labels = const {}, + }) => + payload; + + static const List<_i1.SmithySerializer> serializers = [ + GetMfaDeviceRequestAwsQuerySerializer() + ]; + + @BuiltValueHook(initializeBuilder: true) + static void _init(GetMfaDeviceRequestBuilder b) {} + + /// Serial number that uniquely identifies the MFA device. For this API, we only accept FIDO security key [ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html). + String get serialNumber; + + /// The friendly name identifying the user. + String? get userName; + @override + GetMfaDeviceRequest getPayload() => this; + @override + List get props => [ + serialNumber, + userName, + ]; + @override + String toString() { + final helper = newBuiltValueToStringHelper('GetMfaDeviceRequest') + ..add( + 'serialNumber', + serialNumber, + ) + ..add( + 'userName', + userName, + ); + return helper.toString(); + } +} + +class GetMfaDeviceRequestAwsQuerySerializer + extends _i1.StructuredSmithySerializer { + const GetMfaDeviceRequestAwsQuerySerializer() : super('GetMfaDeviceRequest'); + + @override + Iterable get types => const [ + GetMfaDeviceRequest, + _$GetMfaDeviceRequest, + ]; + @override + Iterable<_i1.ShapeId> get supportedProtocols => const [ + _i1.ShapeId( + namespace: 'aws.protocols', + shape: 'awsQuery', + ) + ]; + @override + GetMfaDeviceRequest deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = GetMfaDeviceRequestBuilder(); + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current as String; + iterator.moveNext(); + final value = iterator.current; + if (value == null) { + continue; + } + switch (key) { + case 'SerialNumber': + result.serialNumber = (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String); + case 'UserName': + result.userName = (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String); + } + } + + return result.build(); + } + + @override + Iterable serialize( + Serializers serializers, + GetMfaDeviceRequest object, { + FullType specifiedType = FullType.unspecified, + }) { + final result$ = [ + const _i1.XmlElementName( + 'GetMfaDeviceRequestResponse', + _i1.XmlNamespace('https://iam.amazonaws.com/doc/2010-05-08/'), + ) + ]; + final GetMfaDeviceRequest(:serialNumber, :userName) = object; + result$ + ..add(const _i1.XmlElementName('SerialNumber')) + ..add(serializers.serialize( + serialNumber, + specifiedType: const FullType(String), + )); + if (userName != null) { + result$ + ..add(const _i1.XmlElementName('UserName')) + ..add(serializers.serialize( + userName, + specifiedType: const FullType(String), + )); + } + return result$; + } +} diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_request.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_request.g.dart new file mode 100644 index 0000000000..e0a9e35f06 --- /dev/null +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_request.g.dart @@ -0,0 +1,103 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_mfa_device_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetMfaDeviceRequest extends GetMfaDeviceRequest { + @override + final String serialNumber; + @override + final String? userName; + + factory _$GetMfaDeviceRequest( + [void Function(GetMfaDeviceRequestBuilder)? updates]) => + (new GetMfaDeviceRequestBuilder()..update(updates))._build(); + + _$GetMfaDeviceRequest._({required this.serialNumber, this.userName}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + serialNumber, r'GetMfaDeviceRequest', 'serialNumber'); + } + + @override + GetMfaDeviceRequest rebuild( + void Function(GetMfaDeviceRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetMfaDeviceRequestBuilder toBuilder() => + new GetMfaDeviceRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetMfaDeviceRequest && + serialNumber == other.serialNumber && + userName == other.userName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, serialNumber.hashCode); + _$hash = $jc(_$hash, userName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } +} + +class GetMfaDeviceRequestBuilder + implements Builder { + _$GetMfaDeviceRequest? _$v; + + String? _serialNumber; + String? get serialNumber => _$this._serialNumber; + set serialNumber(String? serialNumber) => _$this._serialNumber = serialNumber; + + String? _userName; + String? get userName => _$this._userName; + set userName(String? userName) => _$this._userName = userName; + + GetMfaDeviceRequestBuilder() { + GetMfaDeviceRequest._init(this); + } + + GetMfaDeviceRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _serialNumber = $v.serialNumber; + _userName = $v.userName; + _$v = null; + } + return this; + } + + @override + void replace(GetMfaDeviceRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetMfaDeviceRequest; + } + + @override + void update(void Function(GetMfaDeviceRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetMfaDeviceRequest build() => _build(); + + _$GetMfaDeviceRequest _build() { + final _$result = _$v ?? + new _$GetMfaDeviceRequest._( + serialNumber: BuiltValueNullFieldError.checkNotNull( + serialNumber, r'GetMfaDeviceRequest', 'serialNumber'), + userName: userName); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_response.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_response.dart new file mode 100644 index 0000000000..0fb5c4069c --- /dev/null +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_response.dart @@ -0,0 +1,220 @@ +// Generated with smithy-dart 0.3.1. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names + +library smoke_test.iam.model.get_mfa_device_response; // ignore_for_file: no_leading_underscores_for_library_prefixes + +import 'package:aws_common/aws_common.dart' as _i1; +import 'package:built_collection/built_collection.dart' as _i2; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:smithy/smithy.dart' as _i3; + +part 'get_mfa_device_response.g.dart'; + +abstract class GetMfaDeviceResponse + with _i1.AWSEquatable + implements Built { + factory GetMfaDeviceResponse({ + String? userName, + required String serialNumber, + DateTime? enableDate, + Map? certifications, + }) { + return _$GetMfaDeviceResponse._( + userName: userName, + serialNumber: serialNumber, + enableDate: enableDate, + certifications: + certifications == null ? null : _i2.BuiltMap(certifications), + ); + } + + factory GetMfaDeviceResponse.build( + [void Function(GetMfaDeviceResponseBuilder) updates]) = + _$GetMfaDeviceResponse; + + const GetMfaDeviceResponse._(); + + /// Constructs a [GetMfaDeviceResponse] from a [payload] and [response]. + factory GetMfaDeviceResponse.fromResponse( + GetMfaDeviceResponse payload, + _i1.AWSBaseHttpResponse response, + ) => + payload; + + static const List<_i3.SmithySerializer> serializers = [ + GetMfaDeviceResponseAwsQuerySerializer() + ]; + + @BuiltValueHook(initializeBuilder: true) + static void _init(GetMfaDeviceResponseBuilder b) {} + + /// The friendly name identifying the user. + String? get userName; + + /// Serial number that uniquely identifies the MFA device. For this API, we only accept FIDO security key [ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html). + String get serialNumber; + + /// The date that a specified user's MFA device was first enabled. + DateTime? get enableDate; + + /// The certifications of a specified user's MFA device. We currently provide FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from [FIDO Alliance Metadata Service (MDS)](https://fidoalliance.org/metadata/). + _i2.BuiltMap? get certifications; + @override + List get props => [ + userName, + serialNumber, + enableDate, + certifications, + ]; + @override + String toString() { + final helper = newBuiltValueToStringHelper('GetMfaDeviceResponse') + ..add( + 'userName', + userName, + ) + ..add( + 'serialNumber', + serialNumber, + ) + ..add( + 'enableDate', + enableDate, + ) + ..add( + 'certifications', + certifications, + ); + return helper.toString(); + } +} + +class GetMfaDeviceResponseAwsQuerySerializer + extends _i3.StructuredSmithySerializer { + const GetMfaDeviceResponseAwsQuerySerializer() + : super('GetMfaDeviceResponse'); + + @override + Iterable get types => const [ + GetMfaDeviceResponse, + _$GetMfaDeviceResponse, + ]; + @override + Iterable<_i3.ShapeId> get supportedProtocols => const [ + _i3.ShapeId( + namespace: 'aws.protocols', + shape: 'awsQuery', + ) + ]; + @override + GetMfaDeviceResponse deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = GetMfaDeviceResponseBuilder(); + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current as String; + iterator.moveNext(); + final value = iterator.current; + if (value == null) { + continue; + } + switch (key) { + case 'UserName': + result.userName = (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String); + case 'SerialNumber': + result.serialNumber = (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String); + case 'EnableDate': + result.enableDate = (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) as DateTime); + case 'Certifications': + result.certifications.replace(const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType( + _i2.BuiltMap, + [ + FullType(String), + FullType(String), + ], + ), + )); + } + } + + return result.build(); + } + + @override + Iterable serialize( + Serializers serializers, + GetMfaDeviceResponse object, { + FullType specifiedType = FullType.unspecified, + }) { + final result$ = [ + const _i3.XmlElementName( + 'GetMfaDeviceResponseResponse', + _i3.XmlNamespace('https://iam.amazonaws.com/doc/2010-05-08/'), + ) + ]; + final GetMfaDeviceResponse( + :userName, + :serialNumber, + :enableDate, + :certifications + ) = object; + if (userName != null) { + result$ + ..add(const _i3.XmlElementName('UserName')) + ..add(serializers.serialize( + userName, + specifiedType: const FullType(String), + )); + } + result$ + ..add(const _i3.XmlElementName('SerialNumber')) + ..add(serializers.serialize( + serialNumber, + specifiedType: const FullType(String), + )); + if (enableDate != null) { + result$ + ..add(const _i3.XmlElementName('EnableDate')) + ..add(serializers.serialize( + enableDate, + specifiedType: const FullType.nullable(DateTime), + )); + } + if (certifications != null) { + result$ + ..add(const _i3.XmlElementName('Certifications')) + ..add( + const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) + .serialize( + serializers, + certifications, + specifiedType: const FullType.nullable( + _i2.BuiltMap, + [ + FullType(String), + FullType(String), + ], + ), + )); + } + return result$; + } +} diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_response.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_response.g.dart new file mode 100644 index 0000000000..a78104be2a --- /dev/null +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/model/get_mfa_device_response.g.dart @@ -0,0 +1,142 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_mfa_device_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetMfaDeviceResponse extends GetMfaDeviceResponse { + @override + final String? userName; + @override + final String serialNumber; + @override + final DateTime? enableDate; + @override + final _i2.BuiltMap? certifications; + + factory _$GetMfaDeviceResponse( + [void Function(GetMfaDeviceResponseBuilder)? updates]) => + (new GetMfaDeviceResponseBuilder()..update(updates))._build(); + + _$GetMfaDeviceResponse._( + {this.userName, + required this.serialNumber, + this.enableDate, + this.certifications}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + serialNumber, r'GetMfaDeviceResponse', 'serialNumber'); + } + + @override + GetMfaDeviceResponse rebuild( + void Function(GetMfaDeviceResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetMfaDeviceResponseBuilder toBuilder() => + new GetMfaDeviceResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetMfaDeviceResponse && + userName == other.userName && + serialNumber == other.serialNumber && + enableDate == other.enableDate && + certifications == other.certifications; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, userName.hashCode); + _$hash = $jc(_$hash, serialNumber.hashCode); + _$hash = $jc(_$hash, enableDate.hashCode); + _$hash = $jc(_$hash, certifications.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } +} + +class GetMfaDeviceResponseBuilder + implements Builder { + _$GetMfaDeviceResponse? _$v; + + String? _userName; + String? get userName => _$this._userName; + set userName(String? userName) => _$this._userName = userName; + + String? _serialNumber; + String? get serialNumber => _$this._serialNumber; + set serialNumber(String? serialNumber) => _$this._serialNumber = serialNumber; + + DateTime? _enableDate; + DateTime? get enableDate => _$this._enableDate; + set enableDate(DateTime? enableDate) => _$this._enableDate = enableDate; + + _i2.MapBuilder? _certifications; + _i2.MapBuilder get certifications => + _$this._certifications ??= new _i2.MapBuilder(); + set certifications(_i2.MapBuilder? certifications) => + _$this._certifications = certifications; + + GetMfaDeviceResponseBuilder() { + GetMfaDeviceResponse._init(this); + } + + GetMfaDeviceResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _userName = $v.userName; + _serialNumber = $v.serialNumber; + _enableDate = $v.enableDate; + _certifications = $v.certifications?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GetMfaDeviceResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetMfaDeviceResponse; + } + + @override + void update(void Function(GetMfaDeviceResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetMfaDeviceResponse build() => _build(); + + _$GetMfaDeviceResponse _build() { + _$GetMfaDeviceResponse _$result; + try { + _$result = _$v ?? + new _$GetMfaDeviceResponse._( + userName: userName, + serialNumber: BuiltValueNullFieldError.checkNotNull( + serialNumber, r'GetMfaDeviceResponse', 'serialNumber'), + enableDate: enableDate, + certifications: _certifications?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'certifications'; + _certifications?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetMfaDeviceResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_group_policy_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_group_policy_operation.dart index bef25e9b2f..7a3fd29639 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_group_policy_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_group_policy_operation.dart @@ -27,7 +27,7 @@ import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' /// Attaches the specified managed policy to the specified IAM group. /// -/// You use this operation to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy. +/// You use this operation to attach a managed policy to a group. To embed an inline policy in a group, use [`PutGroupPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutGroupPolicy.html) . /// /// As a best practice, you can validate your IAM policies. To learn more, see [Validating IAM policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html) in the _IAM User Guide_. /// @@ -39,7 +39,7 @@ class AttachGroupPolicyOperation extends _i1.HttpOperation< _i1.Unit> { /// Attaches the specified managed policy to the specified IAM group. /// - /// You use this operation to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy. + /// You use this operation to attach a managed policy to a group. To embed an inline policy in a group, use [`PutGroupPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutGroupPolicy.html) . /// /// As a best practice, you can validate your IAM policies. To learn more, see [Validating IAM policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html) in the _IAM User Guide_. /// diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_role_policy_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_role_policy_operation.dart index f558968b6d..b3fd1ef24a 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_role_policy_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_role_policy_operation.dart @@ -29,9 +29,9 @@ import 'package:smoke_test/src/sdk/src/iam/model/unmodifiable_entity_exception.d /// Attaches the specified managed policy to the specified IAM role. When you attach a managed policy to a role, the managed policy becomes part of the role's permission (access) policy. /// -/// You cannot use a managed policy as the role's trust policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy. +/// You cannot use a managed policy as the role's trust policy. The role's trust policy is created at the same time as the role, using [`CreateRole`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) . You can update a role's trust policy using [`UpdateAssumerolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAssumeRolePolicy.html) . /// -/// Use this operation to attach a _managed_ policy to a role. To embed an inline policy in a role, use PutRolePolicy. For more information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. +/// Use this operation to attach a _managed_ policy to a role. To embed an inline policy in a role, use [`PutRolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutRolePolicy.html) . For more information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// As a best practice, you can validate your IAM policies. To learn more, see [Validating IAM policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html) in the _IAM User Guide_. class AttachRolePolicyOperation extends _i1.HttpOperation< @@ -41,9 +41,9 @@ class AttachRolePolicyOperation extends _i1.HttpOperation< _i1.Unit> { /// Attaches the specified managed policy to the specified IAM role. When you attach a managed policy to a role, the managed policy becomes part of the role's permission (access) policy. /// - /// You cannot use a managed policy as the role's trust policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy. + /// You cannot use a managed policy as the role's trust policy. The role's trust policy is created at the same time as the role, using [`CreateRole`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) . You can update a role's trust policy using [`UpdateAssumerolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAssumeRolePolicy.html) . /// - /// Use this operation to attach a _managed_ policy to a role. To embed an inline policy in a role, use PutRolePolicy. For more information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. + /// Use this operation to attach a _managed_ policy to a role. To embed an inline policy in a role, use [`PutRolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutRolePolicy.html) . For more information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// As a best practice, you can validate your IAM policies. To learn more, see [Validating IAM policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html) in the _IAM User Guide_. AttachRolePolicyOperation({ diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_user_policy_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_user_policy_operation.dart index 3fa178e226..5048232334 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_user_policy_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/attach_user_policy_operation.dart @@ -27,7 +27,7 @@ import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' /// Attaches the specified managed policy to the specified user. /// -/// You use this operation to attach a _managed_ policy to a user. To embed an inline policy in a user, use PutUserPolicy. +/// You use this operation to attach a _managed_ policy to a user. To embed an inline policy in a user, use [`PutUserPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutUserPolicy.html) . /// /// As a best practice, you can validate your IAM policies. To learn more, see [Validating IAM policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html) in the _IAM User Guide_. /// @@ -39,7 +39,7 @@ class AttachUserPolicyOperation extends _i1.HttpOperation< _i1.Unit> { /// Attaches the specified managed policy to the specified user. /// - /// You use this operation to attach a _managed_ policy to a user. To embed an inline policy in a user, use PutUserPolicy. + /// You use this operation to attach a _managed_ policy to a user. To embed an inline policy in a user, use [`PutUserPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutUserPolicy.html) . /// /// As a best practice, you can validate your IAM policies. To learn more, see [Validating IAM policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html) in the _IAM User Guide_. /// diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/get_mfa_device_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/get_mfa_device_operation.dart new file mode 100644 index 0000000000..f3a6ab09d6 --- /dev/null +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/get_mfa_device_operation.dart @@ -0,0 +1,165 @@ +// Generated with smithy-dart 0.3.1. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names + +library smoke_test.iam.operation.get_mfa_device_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes + +import 'dart:async' as _i11; + +import 'package:aws_common/aws_common.dart' as _i7; +import 'package:aws_signature_v4/aws_signature_v4.dart' as _i4; +import 'package:smithy/smithy.dart' as _i1; +import 'package:smithy_aws/smithy_aws.dart' as _i5; +import 'package:smoke_test/src/sdk/src/iam/common/endpoint_resolver.dart' + as _i8; +import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i6; +import 'package:smoke_test/src/sdk/src/iam/model/get_mfa_device_request.dart' + as _i2; +import 'package:smoke_test/src/sdk/src/iam/model/get_mfa_device_response.dart' + as _i3; +import 'package:smoke_test/src/sdk/src/iam/model/no_such_entity_exception.dart' + as _i9; +import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' + as _i10; + +/// Retrieves information about an MFA device for a specified user. +class GetMfaDeviceOperation extends _i1.HttpOperation< + _i2.GetMfaDeviceRequest, + _i2.GetMfaDeviceRequest, + _i3.GetMfaDeviceResponse, + _i3.GetMfaDeviceResponse> { + /// Retrieves information about an MFA device for a specified user. + GetMfaDeviceOperation({ + required String region, + Uri? baseUri, + _i4.AWSCredentialsProvider credentialsProvider = + const _i4.AWSCredentialsProvider.environment(), + List<_i1.HttpRequestInterceptor> requestInterceptors = const [], + List<_i1.HttpResponseInterceptor> responseInterceptors = const [], + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; + + @override + late final List< + _i1.HttpProtocol<_i2.GetMfaDeviceRequest, _i2.GetMfaDeviceRequest, + _i3.GetMfaDeviceResponse, _i3.GetMfaDeviceResponse>> protocols = [ + _i5.AwsQueryProtocol( + serializers: _i6.serializers, + builderFactories: _i6.builderFactories, + requestInterceptors: <_i1.HttpRequestInterceptor>[ + const _i1.WithHost(), + const _i1.WithContentLength(), + _i5.WithSigV4( + region: _region, + service: _i7.AWSService.iam, + credentialsProvider: _credentialsProvider, + ), + const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i5.WithSdkInvocationId(), + const _i5.WithSdkRequest(), + ] + + _requestInterceptors, + responseInterceptors: + <_i1.HttpResponseInterceptor>[] + _responseInterceptors, + action: 'GetMFADevice', + version: '2010-05-08', + awsQueryErrors: const [ + _i5.AwsQueryError( + shape: 'NoSuchEntityException', + code: 'NoSuchEntity', + httpResponseCode: 404, + ), + _i5.AwsQueryError( + shape: 'ServiceFailureException', + code: 'ServiceFailure', + httpResponseCode: 500, + ), + ], + ) + ]; + + late final _i5.AWSEndpoint _awsEndpoint = _i8.endpointResolver.resolve( + _i8.sdkId, + _region, + ); + + final String _region; + + final Uri? _baseUri; + + final _i4.AWSCredentialsProvider _credentialsProvider; + + final List<_i1.HttpRequestInterceptor> _requestInterceptors; + + final List<_i1.HttpResponseInterceptor> _responseInterceptors; + + @override + _i1.HttpRequest buildRequest(_i2.GetMfaDeviceRequest input) => + _i1.HttpRequest((b) { + b.method = 'POST'; + b.path = r'/'; + }); + @override + int successCode([_i3.GetMfaDeviceResponse? output]) => 200; + @override + _i3.GetMfaDeviceResponse buildOutput( + _i3.GetMfaDeviceResponse payload, + _i7.AWSBaseHttpResponse response, + ) => + _i3.GetMfaDeviceResponse.fromResponse( + payload, + response, + ); + @override + List<_i1.SmithyError> get errorTypes => const [ + _i1.SmithyError<_i9.NoSuchEntityException, _i9.NoSuchEntityException>( + _i1.ShapeId( + namespace: 'com.amazonaws.iam', + shape: 'NoSuchEntityException', + ), + _i1.ErrorKind.client, + _i9.NoSuchEntityException, + statusCode: 404, + builder: _i9.NoSuchEntityException.fromResponse, + ), + _i1.SmithyError<_i10.ServiceFailureException, + _i10.ServiceFailureException>( + _i1.ShapeId( + namespace: 'com.amazonaws.iam', + shape: 'ServiceFailureException', + ), + _i1.ErrorKind.server, + _i10.ServiceFailureException, + statusCode: 500, + builder: _i10.ServiceFailureException.fromResponse, + ), + ]; + @override + String get runtimeTypeName => 'GetMFADevice'; + @override + _i5.AWSRetryer get retryer => _i5.AWSRetryer(); + @override + Uri get baseUri => _baseUri ?? endpoint.uri; + @override + _i1.Endpoint get endpoint => _awsEndpoint.endpoint; + @override + _i1.SmithyOperation<_i3.GetMfaDeviceResponse> run( + _i2.GetMfaDeviceRequest input, { + _i7.AWSHttpClient? client, + _i1.ShapeId? useProtocol, + }) { + return _i11.runZoned( + () => super.run( + input, + client: client, + useProtocol: useProtocol, + ), + zoneValues: { + ...?_awsEndpoint.credentialScope?.zoneValues, + ...{_i7.AWSHeaders.sdkInvocationId: _i7.uuid(secure: true)}, + }, + ); + } +} diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_instance_profile_tags_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_instance_profile_tags_operation.dart index 87eab3f5e3..7aa0cf641f 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_instance_profile_tags_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_instance_profile_tags_operation.dart @@ -3,36 +3,41 @@ library smoke_test.iam.operation.list_instance_profile_tags_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i11; +import 'dart:async' as _i13; -import 'package:aws_common/aws_common.dart' as _i7; -import 'package:aws_signature_v4/aws_signature_v4.dart' as _i4; +import 'package:aws_common/aws_common.dart' as _i9; +import 'package:aws_signature_v4/aws_signature_v4.dart' as _i6; +import 'package:built_collection/built_collection.dart' as _i4; import 'package:smithy/smithy.dart' as _i1; -import 'package:smithy_aws/smithy_aws.dart' as _i5; +import 'package:smithy_aws/smithy_aws.dart' as _i7; import 'package:smoke_test/src/sdk/src/iam/common/endpoint_resolver.dart' - as _i8; -import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i6; + as _i10; +import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i8; import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profile_tags_request.dart' as _i2; import 'package:smoke_test/src/sdk/src/iam/model/list_instance_profile_tags_response.dart' as _i3; import 'package:smoke_test/src/sdk/src/iam/model/no_such_entity_exception.dart' - as _i9; + as _i11; import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' - as _i10; + as _i12; +import 'package:smoke_test/src/sdk/src/iam/model/tag.dart' as _i5; /// Lists the tags that are attached to the specified IAM instance profile. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. -class ListInstanceProfileTagsOperation extends _i1.HttpOperation< +class ListInstanceProfileTagsOperation extends _i1.PaginatedHttpOperation< _i2.ListInstanceProfileTagsRequest, _i2.ListInstanceProfileTagsRequest, _i3.ListInstanceProfileTagsResponse, - _i3.ListInstanceProfileTagsResponse> { + _i3.ListInstanceProfileTagsResponse, + String, + int, + _i4.BuiltList<_i5.Tag>> { /// Lists the tags that are attached to the specified IAM instance profile. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. ListInstanceProfileTagsOperation({ required String region, Uri? baseUri, - _i4.AWSCredentialsProvider credentialsProvider = - const _i4.AWSCredentialsProvider.environment(), + _i6.AWSCredentialsProvider credentialsProvider = + const _i6.AWSCredentialsProvider.environment(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], }) : _region = region, @@ -48,20 +53,20 @@ class ListInstanceProfileTagsOperation extends _i1.HttpOperation< _i2.ListInstanceProfileTagsRequest, _i3.ListInstanceProfileTagsResponse, _i3.ListInstanceProfileTagsResponse>> protocols = [ - _i5.AwsQueryProtocol( - serializers: _i6.serializers, - builderFactories: _i6.builderFactories, + _i7.AwsQueryProtocol( + serializers: _i8.serializers, + builderFactories: _i8.builderFactories, requestInterceptors: <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - _i5.WithSigV4( + _i7.WithSigV4( region: _region, - service: _i7.AWSService.iam, + service: _i9.AWSService.iam, credentialsProvider: _credentialsProvider, ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), - const _i5.WithSdkInvocationId(), - const _i5.WithSdkRequest(), + const _i7.WithSdkInvocationId(), + const _i7.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: @@ -69,12 +74,12 @@ class ListInstanceProfileTagsOperation extends _i1.HttpOperation< action: 'ListInstanceProfileTags', version: '2010-05-08', awsQueryErrors: const [ - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'NoSuchEntityException', code: 'NoSuchEntity', httpResponseCode: 404, ), - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'ServiceFailureException', code: 'ServiceFailure', httpResponseCode: 500, @@ -83,8 +88,8 @@ class ListInstanceProfileTagsOperation extends _i1.HttpOperation< ) ]; - late final _i5.AWSEndpoint _awsEndpoint = _i8.endpointResolver.resolve( - _i8.sdkId, + late final _i7.AWSEndpoint _awsEndpoint = _i10.endpointResolver.resolve( + _i10.sdkId, _region, ); @@ -92,7 +97,7 @@ class ListInstanceProfileTagsOperation extends _i1.HttpOperation< final Uri? _baseUri; - final _i4.AWSCredentialsProvider _credentialsProvider; + final _i6.AWSCredentialsProvider _credentialsProvider; final List<_i1.HttpRequestInterceptor> _requestInterceptors; @@ -109,7 +114,7 @@ class ListInstanceProfileTagsOperation extends _i1.HttpOperation< @override _i3.ListInstanceProfileTagsResponse buildOutput( _i3.ListInstanceProfileTagsResponse payload, - _i7.AWSBaseHttpResponse response, + _i9.AWSBaseHttpResponse response, ) => _i3.ListInstanceProfileTagsResponse.fromResponse( payload, @@ -117,32 +122,32 @@ class ListInstanceProfileTagsOperation extends _i1.HttpOperation< ); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError<_i9.NoSuchEntityException, _i9.NoSuchEntityException>( + _i1.SmithyError<_i11.NoSuchEntityException, _i11.NoSuchEntityException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'NoSuchEntityException', ), _i1.ErrorKind.client, - _i9.NoSuchEntityException, + _i11.NoSuchEntityException, statusCode: 404, - builder: _i9.NoSuchEntityException.fromResponse, + builder: _i11.NoSuchEntityException.fromResponse, ), - _i1.SmithyError<_i10.ServiceFailureException, - _i10.ServiceFailureException>( + _i1.SmithyError<_i12.ServiceFailureException, + _i12.ServiceFailureException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'ServiceFailureException', ), _i1.ErrorKind.server, - _i10.ServiceFailureException, + _i12.ServiceFailureException, statusCode: 500, - builder: _i10.ServiceFailureException.fromResponse, + builder: _i12.ServiceFailureException.fromResponse, ), ]; @override String get runtimeTypeName => 'ListInstanceProfileTags'; @override - _i5.AWSRetryer get retryer => _i5.AWSRetryer(); + _i7.AWSRetryer get retryer => _i7.AWSRetryer(); @override Uri get baseUri => _baseUri ?? endpoint.uri; @override @@ -150,10 +155,10 @@ class ListInstanceProfileTagsOperation extends _i1.HttpOperation< @override _i1.SmithyOperation<_i3.ListInstanceProfileTagsResponse> run( _i2.ListInstanceProfileTagsRequest input, { - _i7.AWSHttpClient? client, + _i9.AWSHttpClient? client, _i1.ShapeId? useProtocol, }) { - return _i11.runZoned( + return _i13.runZoned( () => super.run( input, client: client, @@ -161,8 +166,26 @@ class ListInstanceProfileTagsOperation extends _i1.HttpOperation< ), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, - ...{_i7.AWSHeaders.sdkInvocationId: _i7.uuid(secure: true)}, + ...{_i9.AWSHeaders.sdkInvocationId: _i9.uuid(secure: true)}, }, ); } + + @override + String? getToken(_i3.ListInstanceProfileTagsResponse output) => output.marker; + @override + _i4.BuiltList<_i5.Tag> getItems(_i3.ListInstanceProfileTagsResponse output) => + output.tags; + @override + _i2.ListInstanceProfileTagsRequest rebuildInput( + _i2.ListInstanceProfileTagsRequest input, + String token, + int? pageSize, + ) => + input.rebuild((b) { + b.marker = token; + if (pageSize != null) { + b.maxItems = pageSize; + } + }); } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_mfa_device_tags_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_mfa_device_tags_operation.dart index e6a3af444a..24b3187fe6 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_mfa_device_tags_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_mfa_device_tags_operation.dart @@ -3,38 +3,43 @@ library smoke_test.iam.operation.list_mfa_device_tags_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i12; +import 'dart:async' as _i14; -import 'package:aws_common/aws_common.dart' as _i7; -import 'package:aws_signature_v4/aws_signature_v4.dart' as _i4; +import 'package:aws_common/aws_common.dart' as _i9; +import 'package:aws_signature_v4/aws_signature_v4.dart' as _i6; +import 'package:built_collection/built_collection.dart' as _i4; import 'package:smithy/smithy.dart' as _i1; -import 'package:smithy_aws/smithy_aws.dart' as _i5; +import 'package:smithy_aws/smithy_aws.dart' as _i7; import 'package:smoke_test/src/sdk/src/iam/common/endpoint_resolver.dart' - as _i8; -import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i6; + as _i10; +import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i8; import 'package:smoke_test/src/sdk/src/iam/model/invalid_input_exception.dart' - as _i9; + as _i11; import 'package:smoke_test/src/sdk/src/iam/model/list_mfa_device_tags_request.dart' as _i2; import 'package:smoke_test/src/sdk/src/iam/model/list_mfa_device_tags_response.dart' as _i3; import 'package:smoke_test/src/sdk/src/iam/model/no_such_entity_exception.dart' - as _i10; + as _i12; import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' - as _i11; + as _i13; +import 'package:smoke_test/src/sdk/src/iam/model/tag.dart' as _i5; /// Lists the tags that are attached to the specified IAM virtual multi-factor authentication (MFA) device. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. -class ListMfaDeviceTagsOperation extends _i1.HttpOperation< +class ListMfaDeviceTagsOperation extends _i1.PaginatedHttpOperation< _i2.ListMfaDeviceTagsRequest, _i2.ListMfaDeviceTagsRequest, _i3.ListMfaDeviceTagsResponse, - _i3.ListMfaDeviceTagsResponse> { + _i3.ListMfaDeviceTagsResponse, + String, + int, + _i4.BuiltList<_i5.Tag>> { /// Lists the tags that are attached to the specified IAM virtual multi-factor authentication (MFA) device. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. ListMfaDeviceTagsOperation({ required String region, Uri? baseUri, - _i4.AWSCredentialsProvider credentialsProvider = - const _i4.AWSCredentialsProvider.environment(), + _i6.AWSCredentialsProvider credentialsProvider = + const _i6.AWSCredentialsProvider.environment(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], }) : _region = region, @@ -50,20 +55,20 @@ class ListMfaDeviceTagsOperation extends _i1.HttpOperation< _i2.ListMfaDeviceTagsRequest, _i3.ListMfaDeviceTagsResponse, _i3.ListMfaDeviceTagsResponse>> protocols = [ - _i5.AwsQueryProtocol( - serializers: _i6.serializers, - builderFactories: _i6.builderFactories, + _i7.AwsQueryProtocol( + serializers: _i8.serializers, + builderFactories: _i8.builderFactories, requestInterceptors: <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - _i5.WithSigV4( + _i7.WithSigV4( region: _region, - service: _i7.AWSService.iam, + service: _i9.AWSService.iam, credentialsProvider: _credentialsProvider, ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), - const _i5.WithSdkInvocationId(), - const _i5.WithSdkRequest(), + const _i7.WithSdkInvocationId(), + const _i7.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: @@ -71,17 +76,17 @@ class ListMfaDeviceTagsOperation extends _i1.HttpOperation< action: 'ListMFADeviceTags', version: '2010-05-08', awsQueryErrors: const [ - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'InvalidInputException', code: 'InvalidInput', httpResponseCode: 400, ), - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'NoSuchEntityException', code: 'NoSuchEntity', httpResponseCode: 404, ), - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'ServiceFailureException', code: 'ServiceFailure', httpResponseCode: 500, @@ -90,8 +95,8 @@ class ListMfaDeviceTagsOperation extends _i1.HttpOperation< ) ]; - late final _i5.AWSEndpoint _awsEndpoint = _i8.endpointResolver.resolve( - _i8.sdkId, + late final _i7.AWSEndpoint _awsEndpoint = _i10.endpointResolver.resolve( + _i10.sdkId, _region, ); @@ -99,7 +104,7 @@ class ListMfaDeviceTagsOperation extends _i1.HttpOperation< final Uri? _baseUri; - final _i4.AWSCredentialsProvider _credentialsProvider; + final _i6.AWSCredentialsProvider _credentialsProvider; final List<_i1.HttpRequestInterceptor> _requestInterceptors; @@ -116,7 +121,7 @@ class ListMfaDeviceTagsOperation extends _i1.HttpOperation< @override _i3.ListMfaDeviceTagsResponse buildOutput( _i3.ListMfaDeviceTagsResponse payload, - _i7.AWSBaseHttpResponse response, + _i9.AWSBaseHttpResponse response, ) => _i3.ListMfaDeviceTagsResponse.fromResponse( payload, @@ -124,42 +129,42 @@ class ListMfaDeviceTagsOperation extends _i1.HttpOperation< ); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError<_i9.InvalidInputException, _i9.InvalidInputException>( + _i1.SmithyError<_i11.InvalidInputException, _i11.InvalidInputException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'InvalidInputException', ), _i1.ErrorKind.client, - _i9.InvalidInputException, + _i11.InvalidInputException, statusCode: 400, - builder: _i9.InvalidInputException.fromResponse, + builder: _i11.InvalidInputException.fromResponse, ), - _i1.SmithyError<_i10.NoSuchEntityException, _i10.NoSuchEntityException>( + _i1.SmithyError<_i12.NoSuchEntityException, _i12.NoSuchEntityException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'NoSuchEntityException', ), _i1.ErrorKind.client, - _i10.NoSuchEntityException, + _i12.NoSuchEntityException, statusCode: 404, - builder: _i10.NoSuchEntityException.fromResponse, + builder: _i12.NoSuchEntityException.fromResponse, ), - _i1.SmithyError<_i11.ServiceFailureException, - _i11.ServiceFailureException>( + _i1.SmithyError<_i13.ServiceFailureException, + _i13.ServiceFailureException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'ServiceFailureException', ), _i1.ErrorKind.server, - _i11.ServiceFailureException, + _i13.ServiceFailureException, statusCode: 500, - builder: _i11.ServiceFailureException.fromResponse, + builder: _i13.ServiceFailureException.fromResponse, ), ]; @override String get runtimeTypeName => 'ListMFADeviceTags'; @override - _i5.AWSRetryer get retryer => _i5.AWSRetryer(); + _i7.AWSRetryer get retryer => _i7.AWSRetryer(); @override Uri get baseUri => _baseUri ?? endpoint.uri; @override @@ -167,10 +172,10 @@ class ListMfaDeviceTagsOperation extends _i1.HttpOperation< @override _i1.SmithyOperation<_i3.ListMfaDeviceTagsResponse> run( _i2.ListMfaDeviceTagsRequest input, { - _i7.AWSHttpClient? client, + _i9.AWSHttpClient? client, _i1.ShapeId? useProtocol, }) { - return _i12.runZoned( + return _i14.runZoned( () => super.run( input, client: client, @@ -178,8 +183,26 @@ class ListMfaDeviceTagsOperation extends _i1.HttpOperation< ), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, - ...{_i7.AWSHeaders.sdkInvocationId: _i7.uuid(secure: true)}, + ...{_i9.AWSHeaders.sdkInvocationId: _i9.uuid(secure: true)}, }, ); } + + @override + String? getToken(_i3.ListMfaDeviceTagsResponse output) => output.marker; + @override + _i4.BuiltList<_i5.Tag> getItems(_i3.ListMfaDeviceTagsResponse output) => + output.tags; + @override + _i2.ListMfaDeviceTagsRequest rebuildInput( + _i2.ListMfaDeviceTagsRequest input, + String token, + int? pageSize, + ) => + input.rebuild((b) { + b.marker = token; + if (pageSize != null) { + b.maxItems = pageSize; + } + }); } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_open_id_connect_provider_tags_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_open_id_connect_provider_tags_operation.dart index 0e97bf3e32..3e47cfebc8 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_open_id_connect_provider_tags_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_open_id_connect_provider_tags_operation.dart @@ -3,42 +3,47 @@ library smoke_test.iam.operation.list_open_id_connect_provider_tags_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i12; +import 'dart:async' as _i14; -import 'package:aws_common/aws_common.dart' as _i7; -import 'package:aws_signature_v4/aws_signature_v4.dart' as _i4; +import 'package:aws_common/aws_common.dart' as _i9; +import 'package:aws_signature_v4/aws_signature_v4.dart' as _i6; +import 'package:built_collection/built_collection.dart' as _i4; import 'package:smithy/smithy.dart' as _i1; -import 'package:smithy_aws/smithy_aws.dart' as _i5; +import 'package:smithy_aws/smithy_aws.dart' as _i7; import 'package:smoke_test/src/sdk/src/iam/common/endpoint_resolver.dart' - as _i8; -import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i6; + as _i10; +import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i8; import 'package:smoke_test/src/sdk/src/iam/model/invalid_input_exception.dart' - as _i9; + as _i11; import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_provider_tags_request.dart' as _i2; import 'package:smoke_test/src/sdk/src/iam/model/list_open_id_connect_provider_tags_response.dart' as _i3; import 'package:smoke_test/src/sdk/src/iam/model/no_such_entity_exception.dart' - as _i10; + as _i12; import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' - as _i11; + as _i13; +import 'package:smoke_test/src/sdk/src/iam/model/tag.dart' as _i5; /// Lists the tags that are attached to the specified OpenID Connect (OIDC)-compatible identity provider. The returned list of tags is sorted by tag key. For more information, see [About web identity federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html). /// /// For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. -class ListOpenIdConnectProviderTagsOperation extends _i1.HttpOperation< +class ListOpenIdConnectProviderTagsOperation extends _i1.PaginatedHttpOperation< _i2.ListOpenIdConnectProviderTagsRequest, _i2.ListOpenIdConnectProviderTagsRequest, _i3.ListOpenIdConnectProviderTagsResponse, - _i3.ListOpenIdConnectProviderTagsResponse> { + _i3.ListOpenIdConnectProviderTagsResponse, + String, + int, + _i4.BuiltList<_i5.Tag>> { /// Lists the tags that are attached to the specified OpenID Connect (OIDC)-compatible identity provider. The returned list of tags is sorted by tag key. For more information, see [About web identity federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html). /// /// For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. ListOpenIdConnectProviderTagsOperation({ required String region, Uri? baseUri, - _i4.AWSCredentialsProvider credentialsProvider = - const _i4.AWSCredentialsProvider.environment(), + _i6.AWSCredentialsProvider credentialsProvider = + const _i6.AWSCredentialsProvider.environment(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], }) : _region = region, @@ -54,20 +59,20 @@ class ListOpenIdConnectProviderTagsOperation extends _i1.HttpOperation< _i2.ListOpenIdConnectProviderTagsRequest, _i3.ListOpenIdConnectProviderTagsResponse, _i3.ListOpenIdConnectProviderTagsResponse>> protocols = [ - _i5.AwsQueryProtocol( - serializers: _i6.serializers, - builderFactories: _i6.builderFactories, + _i7.AwsQueryProtocol( + serializers: _i8.serializers, + builderFactories: _i8.builderFactories, requestInterceptors: <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - _i5.WithSigV4( + _i7.WithSigV4( region: _region, - service: _i7.AWSService.iam, + service: _i9.AWSService.iam, credentialsProvider: _credentialsProvider, ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), - const _i5.WithSdkInvocationId(), - const _i5.WithSdkRequest(), + const _i7.WithSdkInvocationId(), + const _i7.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: @@ -75,17 +80,17 @@ class ListOpenIdConnectProviderTagsOperation extends _i1.HttpOperation< action: 'ListOpenIDConnectProviderTags', version: '2010-05-08', awsQueryErrors: const [ - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'InvalidInputException', code: 'InvalidInput', httpResponseCode: 400, ), - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'NoSuchEntityException', code: 'NoSuchEntity', httpResponseCode: 404, ), - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'ServiceFailureException', code: 'ServiceFailure', httpResponseCode: 500, @@ -94,8 +99,8 @@ class ListOpenIdConnectProviderTagsOperation extends _i1.HttpOperation< ) ]; - late final _i5.AWSEndpoint _awsEndpoint = _i8.endpointResolver.resolve( - _i8.sdkId, + late final _i7.AWSEndpoint _awsEndpoint = _i10.endpointResolver.resolve( + _i10.sdkId, _region, ); @@ -103,7 +108,7 @@ class ListOpenIdConnectProviderTagsOperation extends _i1.HttpOperation< final Uri? _baseUri; - final _i4.AWSCredentialsProvider _credentialsProvider; + final _i6.AWSCredentialsProvider _credentialsProvider; final List<_i1.HttpRequestInterceptor> _requestInterceptors; @@ -121,7 +126,7 @@ class ListOpenIdConnectProviderTagsOperation extends _i1.HttpOperation< @override _i3.ListOpenIdConnectProviderTagsResponse buildOutput( _i3.ListOpenIdConnectProviderTagsResponse payload, - _i7.AWSBaseHttpResponse response, + _i9.AWSBaseHttpResponse response, ) => _i3.ListOpenIdConnectProviderTagsResponse.fromResponse( payload, @@ -129,42 +134,42 @@ class ListOpenIdConnectProviderTagsOperation extends _i1.HttpOperation< ); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError<_i9.InvalidInputException, _i9.InvalidInputException>( + _i1.SmithyError<_i11.InvalidInputException, _i11.InvalidInputException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'InvalidInputException', ), _i1.ErrorKind.client, - _i9.InvalidInputException, + _i11.InvalidInputException, statusCode: 400, - builder: _i9.InvalidInputException.fromResponse, + builder: _i11.InvalidInputException.fromResponse, ), - _i1.SmithyError<_i10.NoSuchEntityException, _i10.NoSuchEntityException>( + _i1.SmithyError<_i12.NoSuchEntityException, _i12.NoSuchEntityException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'NoSuchEntityException', ), _i1.ErrorKind.client, - _i10.NoSuchEntityException, + _i12.NoSuchEntityException, statusCode: 404, - builder: _i10.NoSuchEntityException.fromResponse, + builder: _i12.NoSuchEntityException.fromResponse, ), - _i1.SmithyError<_i11.ServiceFailureException, - _i11.ServiceFailureException>( + _i1.SmithyError<_i13.ServiceFailureException, + _i13.ServiceFailureException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'ServiceFailureException', ), _i1.ErrorKind.server, - _i11.ServiceFailureException, + _i13.ServiceFailureException, statusCode: 500, - builder: _i11.ServiceFailureException.fromResponse, + builder: _i13.ServiceFailureException.fromResponse, ), ]; @override String get runtimeTypeName => 'ListOpenIDConnectProviderTags'; @override - _i5.AWSRetryer get retryer => _i5.AWSRetryer(); + _i7.AWSRetryer get retryer => _i7.AWSRetryer(); @override Uri get baseUri => _baseUri ?? endpoint.uri; @override @@ -172,10 +177,10 @@ class ListOpenIdConnectProviderTagsOperation extends _i1.HttpOperation< @override _i1.SmithyOperation<_i3.ListOpenIdConnectProviderTagsResponse> run( _i2.ListOpenIdConnectProviderTagsRequest input, { - _i7.AWSHttpClient? client, + _i9.AWSHttpClient? client, _i1.ShapeId? useProtocol, }) { - return _i12.runZoned( + return _i14.runZoned( () => super.run( input, client: client, @@ -183,8 +188,28 @@ class ListOpenIdConnectProviderTagsOperation extends _i1.HttpOperation< ), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, - ...{_i7.AWSHeaders.sdkInvocationId: _i7.uuid(secure: true)}, + ...{_i9.AWSHeaders.sdkInvocationId: _i9.uuid(secure: true)}, }, ); } + + @override + String? getToken(_i3.ListOpenIdConnectProviderTagsResponse output) => + output.marker; + @override + _i4.BuiltList<_i5.Tag> getItems( + _i3.ListOpenIdConnectProviderTagsResponse output) => + output.tags; + @override + _i2.ListOpenIdConnectProviderTagsRequest rebuildInput( + _i2.ListOpenIdConnectProviderTagsRequest input, + String token, + int? pageSize, + ) => + input.rebuild((b) { + b.marker = token; + if (pageSize != null) { + b.maxItems = pageSize; + } + }); } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_policy_tags_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_policy_tags_operation.dart index d64794db6f..19497cc106 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_policy_tags_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_policy_tags_operation.dart @@ -3,38 +3,43 @@ library smoke_test.iam.operation.list_policy_tags_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i12; +import 'dart:async' as _i14; -import 'package:aws_common/aws_common.dart' as _i7; -import 'package:aws_signature_v4/aws_signature_v4.dart' as _i4; +import 'package:aws_common/aws_common.dart' as _i9; +import 'package:aws_signature_v4/aws_signature_v4.dart' as _i6; +import 'package:built_collection/built_collection.dart' as _i4; import 'package:smithy/smithy.dart' as _i1; -import 'package:smithy_aws/smithy_aws.dart' as _i5; +import 'package:smithy_aws/smithy_aws.dart' as _i7; import 'package:smoke_test/src/sdk/src/iam/common/endpoint_resolver.dart' - as _i8; -import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i6; + as _i10; +import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i8; import 'package:smoke_test/src/sdk/src/iam/model/invalid_input_exception.dart' - as _i9; + as _i11; import 'package:smoke_test/src/sdk/src/iam/model/list_policy_tags_request.dart' as _i2; import 'package:smoke_test/src/sdk/src/iam/model/list_policy_tags_response.dart' as _i3; import 'package:smoke_test/src/sdk/src/iam/model/no_such_entity_exception.dart' - as _i10; + as _i12; import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' - as _i11; + as _i13; +import 'package:smoke_test/src/sdk/src/iam/model/tag.dart' as _i5; /// Lists the tags that are attached to the specified IAM customer managed policy. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. -class ListPolicyTagsOperation extends _i1.HttpOperation< +class ListPolicyTagsOperation extends _i1.PaginatedHttpOperation< _i2.ListPolicyTagsRequest, _i2.ListPolicyTagsRequest, _i3.ListPolicyTagsResponse, - _i3.ListPolicyTagsResponse> { + _i3.ListPolicyTagsResponse, + String, + int, + _i4.BuiltList<_i5.Tag>> { /// Lists the tags that are attached to the specified IAM customer managed policy. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. ListPolicyTagsOperation({ required String region, Uri? baseUri, - _i4.AWSCredentialsProvider credentialsProvider = - const _i4.AWSCredentialsProvider.environment(), + _i6.AWSCredentialsProvider credentialsProvider = + const _i6.AWSCredentialsProvider.environment(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], }) : _region = region, @@ -47,20 +52,20 @@ class ListPolicyTagsOperation extends _i1.HttpOperation< late final List< _i1.HttpProtocol<_i2.ListPolicyTagsRequest, _i2.ListPolicyTagsRequest, _i3.ListPolicyTagsResponse, _i3.ListPolicyTagsResponse>> protocols = [ - _i5.AwsQueryProtocol( - serializers: _i6.serializers, - builderFactories: _i6.builderFactories, + _i7.AwsQueryProtocol( + serializers: _i8.serializers, + builderFactories: _i8.builderFactories, requestInterceptors: <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - _i5.WithSigV4( + _i7.WithSigV4( region: _region, - service: _i7.AWSService.iam, + service: _i9.AWSService.iam, credentialsProvider: _credentialsProvider, ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), - const _i5.WithSdkInvocationId(), - const _i5.WithSdkRequest(), + const _i7.WithSdkInvocationId(), + const _i7.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: @@ -68,17 +73,17 @@ class ListPolicyTagsOperation extends _i1.HttpOperation< action: 'ListPolicyTags', version: '2010-05-08', awsQueryErrors: const [ - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'InvalidInputException', code: 'InvalidInput', httpResponseCode: 400, ), - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'NoSuchEntityException', code: 'NoSuchEntity', httpResponseCode: 404, ), - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'ServiceFailureException', code: 'ServiceFailure', httpResponseCode: 500, @@ -87,8 +92,8 @@ class ListPolicyTagsOperation extends _i1.HttpOperation< ) ]; - late final _i5.AWSEndpoint _awsEndpoint = _i8.endpointResolver.resolve( - _i8.sdkId, + late final _i7.AWSEndpoint _awsEndpoint = _i10.endpointResolver.resolve( + _i10.sdkId, _region, ); @@ -96,7 +101,7 @@ class ListPolicyTagsOperation extends _i1.HttpOperation< final Uri? _baseUri; - final _i4.AWSCredentialsProvider _credentialsProvider; + final _i6.AWSCredentialsProvider _credentialsProvider; final List<_i1.HttpRequestInterceptor> _requestInterceptors; @@ -113,7 +118,7 @@ class ListPolicyTagsOperation extends _i1.HttpOperation< @override _i3.ListPolicyTagsResponse buildOutput( _i3.ListPolicyTagsResponse payload, - _i7.AWSBaseHttpResponse response, + _i9.AWSBaseHttpResponse response, ) => _i3.ListPolicyTagsResponse.fromResponse( payload, @@ -121,42 +126,42 @@ class ListPolicyTagsOperation extends _i1.HttpOperation< ); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError<_i9.InvalidInputException, _i9.InvalidInputException>( + _i1.SmithyError<_i11.InvalidInputException, _i11.InvalidInputException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'InvalidInputException', ), _i1.ErrorKind.client, - _i9.InvalidInputException, + _i11.InvalidInputException, statusCode: 400, - builder: _i9.InvalidInputException.fromResponse, + builder: _i11.InvalidInputException.fromResponse, ), - _i1.SmithyError<_i10.NoSuchEntityException, _i10.NoSuchEntityException>( + _i1.SmithyError<_i12.NoSuchEntityException, _i12.NoSuchEntityException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'NoSuchEntityException', ), _i1.ErrorKind.client, - _i10.NoSuchEntityException, + _i12.NoSuchEntityException, statusCode: 404, - builder: _i10.NoSuchEntityException.fromResponse, + builder: _i12.NoSuchEntityException.fromResponse, ), - _i1.SmithyError<_i11.ServiceFailureException, - _i11.ServiceFailureException>( + _i1.SmithyError<_i13.ServiceFailureException, + _i13.ServiceFailureException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'ServiceFailureException', ), _i1.ErrorKind.server, - _i11.ServiceFailureException, + _i13.ServiceFailureException, statusCode: 500, - builder: _i11.ServiceFailureException.fromResponse, + builder: _i13.ServiceFailureException.fromResponse, ), ]; @override String get runtimeTypeName => 'ListPolicyTags'; @override - _i5.AWSRetryer get retryer => _i5.AWSRetryer(); + _i7.AWSRetryer get retryer => _i7.AWSRetryer(); @override Uri get baseUri => _baseUri ?? endpoint.uri; @override @@ -164,10 +169,10 @@ class ListPolicyTagsOperation extends _i1.HttpOperation< @override _i1.SmithyOperation<_i3.ListPolicyTagsResponse> run( _i2.ListPolicyTagsRequest input, { - _i7.AWSHttpClient? client, + _i9.AWSHttpClient? client, _i1.ShapeId? useProtocol, }) { - return _i12.runZoned( + return _i14.runZoned( () => super.run( input, client: client, @@ -175,8 +180,26 @@ class ListPolicyTagsOperation extends _i1.HttpOperation< ), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, - ...{_i7.AWSHeaders.sdkInvocationId: _i7.uuid(secure: true)}, + ...{_i9.AWSHeaders.sdkInvocationId: _i9.uuid(secure: true)}, }, ); } + + @override + String? getToken(_i3.ListPolicyTagsResponse output) => output.marker; + @override + _i4.BuiltList<_i5.Tag> getItems(_i3.ListPolicyTagsResponse output) => + output.tags; + @override + _i2.ListPolicyTagsRequest rebuildInput( + _i2.ListPolicyTagsRequest input, + String token, + int? pageSize, + ) => + input.rebuild((b) { + b.marker = token; + if (pageSize != null) { + b.maxItems = pageSize; + } + }); } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_role_tags_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_role_tags_operation.dart index a9f18d708e..04812d9a7b 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_role_tags_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_role_tags_operation.dart @@ -3,36 +3,41 @@ library smoke_test.iam.operation.list_role_tags_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i11; +import 'dart:async' as _i13; -import 'package:aws_common/aws_common.dart' as _i7; -import 'package:aws_signature_v4/aws_signature_v4.dart' as _i4; +import 'package:aws_common/aws_common.dart' as _i9; +import 'package:aws_signature_v4/aws_signature_v4.dart' as _i6; +import 'package:built_collection/built_collection.dart' as _i4; import 'package:smithy/smithy.dart' as _i1; -import 'package:smithy_aws/smithy_aws.dart' as _i5; +import 'package:smithy_aws/smithy_aws.dart' as _i7; import 'package:smoke_test/src/sdk/src/iam/common/endpoint_resolver.dart' - as _i8; -import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i6; + as _i10; +import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i8; import 'package:smoke_test/src/sdk/src/iam/model/list_role_tags_request.dart' as _i2; import 'package:smoke_test/src/sdk/src/iam/model/list_role_tags_response.dart' as _i3; import 'package:smoke_test/src/sdk/src/iam/model/no_such_entity_exception.dart' - as _i9; + as _i11; import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' - as _i10; + as _i12; +import 'package:smoke_test/src/sdk/src/iam/model/tag.dart' as _i5; /// Lists the tags that are attached to the specified role. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. -class ListRoleTagsOperation extends _i1.HttpOperation< +class ListRoleTagsOperation extends _i1.PaginatedHttpOperation< _i2.ListRoleTagsRequest, _i2.ListRoleTagsRequest, _i3.ListRoleTagsResponse, - _i3.ListRoleTagsResponse> { + _i3.ListRoleTagsResponse, + String, + int, + _i4.BuiltList<_i5.Tag>> { /// Lists the tags that are attached to the specified role. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. ListRoleTagsOperation({ required String region, Uri? baseUri, - _i4.AWSCredentialsProvider credentialsProvider = - const _i4.AWSCredentialsProvider.environment(), + _i6.AWSCredentialsProvider credentialsProvider = + const _i6.AWSCredentialsProvider.environment(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], }) : _region = region, @@ -45,20 +50,20 @@ class ListRoleTagsOperation extends _i1.HttpOperation< late final List< _i1.HttpProtocol<_i2.ListRoleTagsRequest, _i2.ListRoleTagsRequest, _i3.ListRoleTagsResponse, _i3.ListRoleTagsResponse>> protocols = [ - _i5.AwsQueryProtocol( - serializers: _i6.serializers, - builderFactories: _i6.builderFactories, + _i7.AwsQueryProtocol( + serializers: _i8.serializers, + builderFactories: _i8.builderFactories, requestInterceptors: <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - _i5.WithSigV4( + _i7.WithSigV4( region: _region, - service: _i7.AWSService.iam, + service: _i9.AWSService.iam, credentialsProvider: _credentialsProvider, ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), - const _i5.WithSdkInvocationId(), - const _i5.WithSdkRequest(), + const _i7.WithSdkInvocationId(), + const _i7.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: @@ -66,12 +71,12 @@ class ListRoleTagsOperation extends _i1.HttpOperation< action: 'ListRoleTags', version: '2010-05-08', awsQueryErrors: const [ - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'NoSuchEntityException', code: 'NoSuchEntity', httpResponseCode: 404, ), - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'ServiceFailureException', code: 'ServiceFailure', httpResponseCode: 500, @@ -80,8 +85,8 @@ class ListRoleTagsOperation extends _i1.HttpOperation< ) ]; - late final _i5.AWSEndpoint _awsEndpoint = _i8.endpointResolver.resolve( - _i8.sdkId, + late final _i7.AWSEndpoint _awsEndpoint = _i10.endpointResolver.resolve( + _i10.sdkId, _region, ); @@ -89,7 +94,7 @@ class ListRoleTagsOperation extends _i1.HttpOperation< final Uri? _baseUri; - final _i4.AWSCredentialsProvider _credentialsProvider; + final _i6.AWSCredentialsProvider _credentialsProvider; final List<_i1.HttpRequestInterceptor> _requestInterceptors; @@ -106,7 +111,7 @@ class ListRoleTagsOperation extends _i1.HttpOperation< @override _i3.ListRoleTagsResponse buildOutput( _i3.ListRoleTagsResponse payload, - _i7.AWSBaseHttpResponse response, + _i9.AWSBaseHttpResponse response, ) => _i3.ListRoleTagsResponse.fromResponse( payload, @@ -114,32 +119,32 @@ class ListRoleTagsOperation extends _i1.HttpOperation< ); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError<_i9.NoSuchEntityException, _i9.NoSuchEntityException>( + _i1.SmithyError<_i11.NoSuchEntityException, _i11.NoSuchEntityException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'NoSuchEntityException', ), _i1.ErrorKind.client, - _i9.NoSuchEntityException, + _i11.NoSuchEntityException, statusCode: 404, - builder: _i9.NoSuchEntityException.fromResponse, + builder: _i11.NoSuchEntityException.fromResponse, ), - _i1.SmithyError<_i10.ServiceFailureException, - _i10.ServiceFailureException>( + _i1.SmithyError<_i12.ServiceFailureException, + _i12.ServiceFailureException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'ServiceFailureException', ), _i1.ErrorKind.server, - _i10.ServiceFailureException, + _i12.ServiceFailureException, statusCode: 500, - builder: _i10.ServiceFailureException.fromResponse, + builder: _i12.ServiceFailureException.fromResponse, ), ]; @override String get runtimeTypeName => 'ListRoleTags'; @override - _i5.AWSRetryer get retryer => _i5.AWSRetryer(); + _i7.AWSRetryer get retryer => _i7.AWSRetryer(); @override Uri get baseUri => _baseUri ?? endpoint.uri; @override @@ -147,10 +152,10 @@ class ListRoleTagsOperation extends _i1.HttpOperation< @override _i1.SmithyOperation<_i3.ListRoleTagsResponse> run( _i2.ListRoleTagsRequest input, { - _i7.AWSHttpClient? client, + _i9.AWSHttpClient? client, _i1.ShapeId? useProtocol, }) { - return _i11.runZoned( + return _i13.runZoned( () => super.run( input, client: client, @@ -158,8 +163,26 @@ class ListRoleTagsOperation extends _i1.HttpOperation< ), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, - ...{_i7.AWSHeaders.sdkInvocationId: _i7.uuid(secure: true)}, + ...{_i9.AWSHeaders.sdkInvocationId: _i9.uuid(secure: true)}, }, ); } + + @override + String? getToken(_i3.ListRoleTagsResponse output) => output.marker; + @override + _i4.BuiltList<_i5.Tag> getItems(_i3.ListRoleTagsResponse output) => + output.tags; + @override + _i2.ListRoleTagsRequest rebuildInput( + _i2.ListRoleTagsRequest input, + String token, + int? pageSize, + ) => + input.rebuild((b) { + b.marker = token; + if (pageSize != null) { + b.maxItems = pageSize; + } + }); } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_saml_provider_tags_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_saml_provider_tags_operation.dart index 0d06cc81ef..5fe6a70ca9 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_saml_provider_tags_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_saml_provider_tags_operation.dart @@ -3,42 +3,47 @@ library smoke_test.iam.operation.list_saml_provider_tags_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i12; +import 'dart:async' as _i14; -import 'package:aws_common/aws_common.dart' as _i7; -import 'package:aws_signature_v4/aws_signature_v4.dart' as _i4; +import 'package:aws_common/aws_common.dart' as _i9; +import 'package:aws_signature_v4/aws_signature_v4.dart' as _i6; +import 'package:built_collection/built_collection.dart' as _i4; import 'package:smithy/smithy.dart' as _i1; -import 'package:smithy_aws/smithy_aws.dart' as _i5; +import 'package:smithy_aws/smithy_aws.dart' as _i7; import 'package:smoke_test/src/sdk/src/iam/common/endpoint_resolver.dart' - as _i8; -import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i6; + as _i10; +import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i8; import 'package:smoke_test/src/sdk/src/iam/model/invalid_input_exception.dart' - as _i9; + as _i11; import 'package:smoke_test/src/sdk/src/iam/model/list_saml_provider_tags_request.dart' as _i2; import 'package:smoke_test/src/sdk/src/iam/model/list_saml_provider_tags_response.dart' as _i3; import 'package:smoke_test/src/sdk/src/iam/model/no_such_entity_exception.dart' - as _i10; + as _i12; import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' - as _i11; + as _i13; +import 'package:smoke_test/src/sdk/src/iam/model/tag.dart' as _i5; /// Lists the tags that are attached to the specified Security Assertion Markup Language (SAML) identity provider. The returned list of tags is sorted by tag key. For more information, see [About SAML 2.0-based federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html). /// /// For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. -class ListSamlProviderTagsOperation extends _i1.HttpOperation< +class ListSamlProviderTagsOperation extends _i1.PaginatedHttpOperation< _i2.ListSamlProviderTagsRequest, _i2.ListSamlProviderTagsRequest, _i3.ListSamlProviderTagsResponse, - _i3.ListSamlProviderTagsResponse> { + _i3.ListSamlProviderTagsResponse, + String, + int, + _i4.BuiltList<_i5.Tag>> { /// Lists the tags that are attached to the specified Security Assertion Markup Language (SAML) identity provider. The returned list of tags is sorted by tag key. For more information, see [About SAML 2.0-based federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html). /// /// For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. ListSamlProviderTagsOperation({ required String region, Uri? baseUri, - _i4.AWSCredentialsProvider credentialsProvider = - const _i4.AWSCredentialsProvider.environment(), + _i6.AWSCredentialsProvider credentialsProvider = + const _i6.AWSCredentialsProvider.environment(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], }) : _region = region, @@ -54,20 +59,20 @@ class ListSamlProviderTagsOperation extends _i1.HttpOperation< _i2.ListSamlProviderTagsRequest, _i3.ListSamlProviderTagsResponse, _i3.ListSamlProviderTagsResponse>> protocols = [ - _i5.AwsQueryProtocol( - serializers: _i6.serializers, - builderFactories: _i6.builderFactories, + _i7.AwsQueryProtocol( + serializers: _i8.serializers, + builderFactories: _i8.builderFactories, requestInterceptors: <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - _i5.WithSigV4( + _i7.WithSigV4( region: _region, - service: _i7.AWSService.iam, + service: _i9.AWSService.iam, credentialsProvider: _credentialsProvider, ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), - const _i5.WithSdkInvocationId(), - const _i5.WithSdkRequest(), + const _i7.WithSdkInvocationId(), + const _i7.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: @@ -75,17 +80,17 @@ class ListSamlProviderTagsOperation extends _i1.HttpOperation< action: 'ListSAMLProviderTags', version: '2010-05-08', awsQueryErrors: const [ - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'InvalidInputException', code: 'InvalidInput', httpResponseCode: 400, ), - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'NoSuchEntityException', code: 'NoSuchEntity', httpResponseCode: 404, ), - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'ServiceFailureException', code: 'ServiceFailure', httpResponseCode: 500, @@ -94,8 +99,8 @@ class ListSamlProviderTagsOperation extends _i1.HttpOperation< ) ]; - late final _i5.AWSEndpoint _awsEndpoint = _i8.endpointResolver.resolve( - _i8.sdkId, + late final _i7.AWSEndpoint _awsEndpoint = _i10.endpointResolver.resolve( + _i10.sdkId, _region, ); @@ -103,7 +108,7 @@ class ListSamlProviderTagsOperation extends _i1.HttpOperation< final Uri? _baseUri; - final _i4.AWSCredentialsProvider _credentialsProvider; + final _i6.AWSCredentialsProvider _credentialsProvider; final List<_i1.HttpRequestInterceptor> _requestInterceptors; @@ -120,7 +125,7 @@ class ListSamlProviderTagsOperation extends _i1.HttpOperation< @override _i3.ListSamlProviderTagsResponse buildOutput( _i3.ListSamlProviderTagsResponse payload, - _i7.AWSBaseHttpResponse response, + _i9.AWSBaseHttpResponse response, ) => _i3.ListSamlProviderTagsResponse.fromResponse( payload, @@ -128,42 +133,42 @@ class ListSamlProviderTagsOperation extends _i1.HttpOperation< ); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError<_i9.InvalidInputException, _i9.InvalidInputException>( + _i1.SmithyError<_i11.InvalidInputException, _i11.InvalidInputException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'InvalidInputException', ), _i1.ErrorKind.client, - _i9.InvalidInputException, + _i11.InvalidInputException, statusCode: 400, - builder: _i9.InvalidInputException.fromResponse, + builder: _i11.InvalidInputException.fromResponse, ), - _i1.SmithyError<_i10.NoSuchEntityException, _i10.NoSuchEntityException>( + _i1.SmithyError<_i12.NoSuchEntityException, _i12.NoSuchEntityException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'NoSuchEntityException', ), _i1.ErrorKind.client, - _i10.NoSuchEntityException, + _i12.NoSuchEntityException, statusCode: 404, - builder: _i10.NoSuchEntityException.fromResponse, + builder: _i12.NoSuchEntityException.fromResponse, ), - _i1.SmithyError<_i11.ServiceFailureException, - _i11.ServiceFailureException>( + _i1.SmithyError<_i13.ServiceFailureException, + _i13.ServiceFailureException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'ServiceFailureException', ), _i1.ErrorKind.server, - _i11.ServiceFailureException, + _i13.ServiceFailureException, statusCode: 500, - builder: _i11.ServiceFailureException.fromResponse, + builder: _i13.ServiceFailureException.fromResponse, ), ]; @override String get runtimeTypeName => 'ListSAMLProviderTags'; @override - _i5.AWSRetryer get retryer => _i5.AWSRetryer(); + _i7.AWSRetryer get retryer => _i7.AWSRetryer(); @override Uri get baseUri => _baseUri ?? endpoint.uri; @override @@ -171,10 +176,10 @@ class ListSamlProviderTagsOperation extends _i1.HttpOperation< @override _i1.SmithyOperation<_i3.ListSamlProviderTagsResponse> run( _i2.ListSamlProviderTagsRequest input, { - _i7.AWSHttpClient? client, + _i9.AWSHttpClient? client, _i1.ShapeId? useProtocol, }) { - return _i12.runZoned( + return _i14.runZoned( () => super.run( input, client: client, @@ -182,8 +187,26 @@ class ListSamlProviderTagsOperation extends _i1.HttpOperation< ), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, - ...{_i7.AWSHeaders.sdkInvocationId: _i7.uuid(secure: true)}, + ...{_i9.AWSHeaders.sdkInvocationId: _i9.uuid(secure: true)}, }, ); } + + @override + String? getToken(_i3.ListSamlProviderTagsResponse output) => output.marker; + @override + _i4.BuiltList<_i5.Tag> getItems(_i3.ListSamlProviderTagsResponse output) => + output.tags; + @override + _i2.ListSamlProviderTagsRequest rebuildInput( + _i2.ListSamlProviderTagsRequest input, + String token, + int? pageSize, + ) => + input.rebuild((b) { + b.marker = token; + if (pageSize != null) { + b.maxItems = pageSize; + } + }); } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_server_certificate_tags_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_server_certificate_tags_operation.dart index f1a54b61b6..7b14586409 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_server_certificate_tags_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/list_server_certificate_tags_operation.dart @@ -3,40 +3,45 @@ library smoke_test.iam.operation.list_server_certificate_tags_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i11; +import 'dart:async' as _i13; -import 'package:aws_common/aws_common.dart' as _i7; -import 'package:aws_signature_v4/aws_signature_v4.dart' as _i4; +import 'package:aws_common/aws_common.dart' as _i9; +import 'package:aws_signature_v4/aws_signature_v4.dart' as _i6; +import 'package:built_collection/built_collection.dart' as _i4; import 'package:smithy/smithy.dart' as _i1; -import 'package:smithy_aws/smithy_aws.dart' as _i5; +import 'package:smithy_aws/smithy_aws.dart' as _i7; import 'package:smoke_test/src/sdk/src/iam/common/endpoint_resolver.dart' - as _i8; -import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i6; + as _i10; +import 'package:smoke_test/src/sdk/src/iam/common/serializers.dart' as _i8; import 'package:smoke_test/src/sdk/src/iam/model/list_server_certificate_tags_request.dart' as _i2; import 'package:smoke_test/src/sdk/src/iam/model/list_server_certificate_tags_response.dart' as _i3; import 'package:smoke_test/src/sdk/src/iam/model/no_such_entity_exception.dart' - as _i9; + as _i11; import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' - as _i10; + as _i12; +import 'package:smoke_test/src/sdk/src/iam/model/tag.dart' as _i5; /// Lists the tags that are attached to the specified IAM server certificate. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. /// /// For certificates in a Region supported by Certificate Manager (ACM), we recommend that you don't use IAM server certificates. Instead, use ACM to provision, manage, and deploy your server certificates. For more information about IAM server certificates, [Working with server certificates](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) in the _IAM User Guide_. -class ListServerCertificateTagsOperation extends _i1.HttpOperation< +class ListServerCertificateTagsOperation extends _i1.PaginatedHttpOperation< _i2.ListServerCertificateTagsRequest, _i2.ListServerCertificateTagsRequest, _i3.ListServerCertificateTagsResponse, - _i3.ListServerCertificateTagsResponse> { + _i3.ListServerCertificateTagsResponse, + String, + int, + _i4.BuiltList<_i5.Tag>> { /// Lists the tags that are attached to the specified IAM server certificate. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the _IAM User Guide_. /// /// For certificates in a Region supported by Certificate Manager (ACM), we recommend that you don't use IAM server certificates. Instead, use ACM to provision, manage, and deploy your server certificates. For more information about IAM server certificates, [Working with server certificates](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) in the _IAM User Guide_. ListServerCertificateTagsOperation({ required String region, Uri? baseUri, - _i4.AWSCredentialsProvider credentialsProvider = - const _i4.AWSCredentialsProvider.environment(), + _i6.AWSCredentialsProvider credentialsProvider = + const _i6.AWSCredentialsProvider.environment(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], }) : _region = region, @@ -52,20 +57,20 @@ class ListServerCertificateTagsOperation extends _i1.HttpOperation< _i2.ListServerCertificateTagsRequest, _i3.ListServerCertificateTagsResponse, _i3.ListServerCertificateTagsResponse>> protocols = [ - _i5.AwsQueryProtocol( - serializers: _i6.serializers, - builderFactories: _i6.builderFactories, + _i7.AwsQueryProtocol( + serializers: _i8.serializers, + builderFactories: _i8.builderFactories, requestInterceptors: <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - _i5.WithSigV4( + _i7.WithSigV4( region: _region, - service: _i7.AWSService.iam, + service: _i9.AWSService.iam, credentialsProvider: _credentialsProvider, ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), - const _i5.WithSdkInvocationId(), - const _i5.WithSdkRequest(), + const _i7.WithSdkInvocationId(), + const _i7.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: @@ -73,12 +78,12 @@ class ListServerCertificateTagsOperation extends _i1.HttpOperation< action: 'ListServerCertificateTags', version: '2010-05-08', awsQueryErrors: const [ - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'NoSuchEntityException', code: 'NoSuchEntity', httpResponseCode: 404, ), - _i5.AwsQueryError( + _i7.AwsQueryError( shape: 'ServiceFailureException', code: 'ServiceFailure', httpResponseCode: 500, @@ -87,8 +92,8 @@ class ListServerCertificateTagsOperation extends _i1.HttpOperation< ) ]; - late final _i5.AWSEndpoint _awsEndpoint = _i8.endpointResolver.resolve( - _i8.sdkId, + late final _i7.AWSEndpoint _awsEndpoint = _i10.endpointResolver.resolve( + _i10.sdkId, _region, ); @@ -96,7 +101,7 @@ class ListServerCertificateTagsOperation extends _i1.HttpOperation< final Uri? _baseUri; - final _i4.AWSCredentialsProvider _credentialsProvider; + final _i6.AWSCredentialsProvider _credentialsProvider; final List<_i1.HttpRequestInterceptor> _requestInterceptors; @@ -113,7 +118,7 @@ class ListServerCertificateTagsOperation extends _i1.HttpOperation< @override _i3.ListServerCertificateTagsResponse buildOutput( _i3.ListServerCertificateTagsResponse payload, - _i7.AWSBaseHttpResponse response, + _i9.AWSBaseHttpResponse response, ) => _i3.ListServerCertificateTagsResponse.fromResponse( payload, @@ -121,32 +126,32 @@ class ListServerCertificateTagsOperation extends _i1.HttpOperation< ); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError<_i9.NoSuchEntityException, _i9.NoSuchEntityException>( + _i1.SmithyError<_i11.NoSuchEntityException, _i11.NoSuchEntityException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'NoSuchEntityException', ), _i1.ErrorKind.client, - _i9.NoSuchEntityException, + _i11.NoSuchEntityException, statusCode: 404, - builder: _i9.NoSuchEntityException.fromResponse, + builder: _i11.NoSuchEntityException.fromResponse, ), - _i1.SmithyError<_i10.ServiceFailureException, - _i10.ServiceFailureException>( + _i1.SmithyError<_i12.ServiceFailureException, + _i12.ServiceFailureException>( _i1.ShapeId( namespace: 'com.amazonaws.iam', shape: 'ServiceFailureException', ), _i1.ErrorKind.server, - _i10.ServiceFailureException, + _i12.ServiceFailureException, statusCode: 500, - builder: _i10.ServiceFailureException.fromResponse, + builder: _i12.ServiceFailureException.fromResponse, ), ]; @override String get runtimeTypeName => 'ListServerCertificateTags'; @override - _i5.AWSRetryer get retryer => _i5.AWSRetryer(); + _i7.AWSRetryer get retryer => _i7.AWSRetryer(); @override Uri get baseUri => _baseUri ?? endpoint.uri; @override @@ -154,10 +159,10 @@ class ListServerCertificateTagsOperation extends _i1.HttpOperation< @override _i1.SmithyOperation<_i3.ListServerCertificateTagsResponse> run( _i2.ListServerCertificateTagsRequest input, { - _i7.AWSHttpClient? client, + _i9.AWSHttpClient? client, _i1.ShapeId? useProtocol, }) { - return _i11.runZoned( + return _i13.runZoned( () => super.run( input, client: client, @@ -165,8 +170,28 @@ class ListServerCertificateTagsOperation extends _i1.HttpOperation< ), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, - ...{_i7.AWSHeaders.sdkInvocationId: _i7.uuid(secure: true)}, + ...{_i9.AWSHeaders.sdkInvocationId: _i9.uuid(secure: true)}, }, ); } + + @override + String? getToken(_i3.ListServerCertificateTagsResponse output) => + output.marker; + @override + _i4.BuiltList<_i5.Tag> getItems( + _i3.ListServerCertificateTagsResponse output) => + output.tags; + @override + _i2.ListServerCertificateTagsRequest rebuildInput( + _i2.ListServerCertificateTagsRequest input, + String token, + int? pageSize, + ) => + input.rebuild((b) { + b.marker = token; + if (pageSize != null) { + b.maxItems = pageSize; + } + }); } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_group_policy_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_group_policy_operation.dart index 157655f2ac..93b6c28212 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_group_policy_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_group_policy_operation.dart @@ -25,7 +25,7 @@ import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' /// Adds or updates an inline policy document that is embedded in the specified IAM group. /// -/// A user can also have managed policies attached to it. To attach a managed policy to a group, use AttachGroupPolicy. To create a new managed policy, use CreatePolicy. For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. +/// A user can also have managed policies attached to it. To attach a managed policy to a group, use [`AttachGroupPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachGroupPolicy.html) . To create a new managed policy, use [`CreatePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html) . For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// For information about the maximum number of inline policies that you can embed in a group, see [IAM and STS quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the _IAM User Guide_. /// @@ -34,7 +34,7 @@ class PutGroupPolicyOperation extends _i1.HttpOperation< _i2.PutGroupPolicyRequest, _i2.PutGroupPolicyRequest, _i1.Unit, _i1.Unit> { /// Adds or updates an inline policy document that is embedded in the specified IAM group. /// - /// A user can also have managed policies attached to it. To attach a managed policy to a group, use AttachGroupPolicy. To create a new managed policy, use CreatePolicy. For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. + /// A user can also have managed policies attached to it. To attach a managed policy to a group, use [`AttachGroupPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachGroupPolicy.html) . To create a new managed policy, use [`CreatePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html) . For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// For information about the maximum number of inline policies that you can embed in a group, see [IAM and STS quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the _IAM User Guide_. /// diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_role_policy_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_role_policy_operation.dart index 93c2fafae0..2afbe0e02e 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_role_policy_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_role_policy_operation.dart @@ -27,9 +27,9 @@ import 'package:smoke_test/src/sdk/src/iam/model/unmodifiable_entity_exception.d /// Adds or updates an inline policy document that is embedded in the specified IAM role. /// -/// When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy. For more information about IAM roles, see [Using roles to delegate permissions and federate identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). +/// When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using [`CreateRole`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) . You can update a role's trust policy using [`UpdateAssumerolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAssumeRolePolicy.html) . For more information about IAM roles, see [Using roles to delegate permissions and federate identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). /// -/// A role can also have a managed policy attached to it. To attach a managed policy to a role, use AttachRolePolicy. To create a new managed policy, use CreatePolicy. For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. +/// A role can also have a managed policy attached to it. To attach a managed policy to a role, use [`AttachRolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachRolePolicy.html) . To create a new managed policy, use [`CreatePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html) . For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// For information about the maximum number of inline policies that you can embed with a role, see [IAM and STS quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the _IAM User Guide_. /// @@ -38,9 +38,9 @@ class PutRolePolicyOperation extends _i1.HttpOperation<_i2.PutRolePolicyRequest, _i2.PutRolePolicyRequest, _i1.Unit, _i1.Unit> { /// Adds or updates an inline policy document that is embedded in the specified IAM role. /// - /// When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy. For more information about IAM roles, see [Using roles to delegate permissions and federate identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). + /// When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using [`CreateRole`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) . You can update a role's trust policy using [`UpdateAssumerolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAssumeRolePolicy.html) . For more information about IAM roles, see [Using roles to delegate permissions and federate identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). /// - /// A role can also have a managed policy attached to it. To attach a managed policy to a role, use AttachRolePolicy. To create a new managed policy, use CreatePolicy. For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. + /// A role can also have a managed policy attached to it. To attach a managed policy to a role, use [`AttachRolePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachRolePolicy.html) . To create a new managed policy, use [`CreatePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html) . For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// For information about the maximum number of inline policies that you can embed with a role, see [IAM and STS quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the _IAM User Guide_. /// diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_user_policy_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_user_policy_operation.dart index c021e6dd90..bd93e17957 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_user_policy_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/iam/operation/put_user_policy_operation.dart @@ -25,7 +25,7 @@ import 'package:smoke_test/src/sdk/src/iam/model/service_failure_exception.dart' /// Adds or updates an inline policy document that is embedded in the specified IAM user. /// -/// An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AttachUserPolicy. To create a new managed policy, use CreatePolicy. For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. +/// An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use [`AttachUserPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachUserPolicy.html) . To create a new managed policy, use [`CreatePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html) . For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// For information about the maximum number of inline policies that you can embed in a user, see [IAM and STS quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the _IAM User Guide_. /// @@ -34,7 +34,7 @@ class PutUserPolicyOperation extends _i1.HttpOperation<_i2.PutUserPolicyRequest, _i2.PutUserPolicyRequest, _i1.Unit, _i1.Unit> { /// Adds or updates an inline policy document that is embedded in the specified IAM user. /// - /// An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AttachUserPolicy. To create a new managed policy, use CreatePolicy. For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. + /// An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use [`AttachUserPolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachUserPolicy.html) . To create a new managed policy, use [`CreatePolicy`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html) . For information about policies, see [Managed policies and inline policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the _IAM User Guide_. /// /// For information about the maximum number of inline policies that you can embed in a user, see [IAM and STS quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the _IAM User Guide_. /// diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/common/serializers.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/common/serializers.dart index 47aed4b5a8..69ef15fdaf 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/common/serializers.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/common/serializers.dart @@ -3,7 +3,7 @@ library smoke_test.s3.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:built_collection/built_collection.dart' as _i349; +import 'package:built_collection/built_collection.dart' as _i351; import 'package:built_value/serializer.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smoke_test/src/sdk/src/s3/model/abort_incomplete_multipart_upload.dart' @@ -13,9 +13,9 @@ import 'package:smoke_test/src/sdk/src/s3/model/abort_multipart_upload_output.da import 'package:smoke_test/src/sdk/src/s3/model/abort_multipart_upload_request.dart' as _i3; import 'package:smoke_test/src/sdk/src/s3/model/accelerate_configuration.dart' - as _i266; -import 'package:smoke_test/src/sdk/src/s3/model/access_control_policy.dart' as _i268; +import 'package:smoke_test/src/sdk/src/s3/model/access_control_policy.dart' + as _i270; import 'package:smoke_test/src/sdk/src/s3/model/access_control_translation.dart' as _i165; import 'package:smoke_test/src/sdk/src/s3/model/analytics_and_operator.dart' @@ -39,11 +39,11 @@ import 'package:smoke_test/src/sdk/src/s3/model/bucket_already_owned_by_you.dart as _i30; import 'package:smoke_test/src/sdk/src/s3/model/bucket_canned_acl.dart' as _i23; import 'package:smoke_test/src/sdk/src/s3/model/bucket_lifecycle_configuration.dart' - as _i276; + as _i278; import 'package:smoke_test/src/sdk/src/s3/model/bucket_location_constraint.dart' as _i24; import 'package:smoke_test/src/sdk/src/s3/model/bucket_logging_status.dart' - as _i278; + as _i280; import 'package:smoke_test/src/sdk/src/s3/model/bucket_logs_permission.dart' as _i124; import 'package:smoke_test/src/sdk/src/s3/model/bucket_versioning_status.dart' @@ -60,19 +60,19 @@ import 'package:smoke_test/src/sdk/src/s3/model/complete_multipart_upload_reques import 'package:smoke_test/src/sdk/src/s3/model/completed_multipart_upload.dart' as _i8; import 'package:smoke_test/src/sdk/src/s3/model/completed_part.dart' as _i7; -import 'package:smoke_test/src/sdk/src/s3/model/compression_type.dart' as _i312; +import 'package:smoke_test/src/sdk/src/s3/model/compression_type.dart' as _i314; import 'package:smoke_test/src/sdk/src/s3/model/condition.dart' as _i192; import 'package:smoke_test/src/sdk/src/s3/model/continuation_event.dart' - as _i339; + as _i341; import 'package:smoke_test/src/sdk/src/s3/model/copy_object_output.dart' as _i21; import 'package:smoke_test/src/sdk/src/s3/model/copy_object_request.dart' as _i19; import 'package:smoke_test/src/sdk/src/s3/model/copy_object_result.dart' as _i20; -import 'package:smoke_test/src/sdk/src/s3/model/copy_part_result.dart' as _i346; +import 'package:smoke_test/src/sdk/src/s3/model/copy_part_result.dart' as _i348; import 'package:smoke_test/src/sdk/src/s3/model/cors_configuration.dart' - as _i271; + as _i273; import 'package:smoke_test/src/sdk/src/s3/model/cors_rule.dart' as _i80; import 'package:smoke_test/src/sdk/src/s3/model/create_bucket_configuration.dart' as _i25; @@ -84,8 +84,8 @@ import 'package:smoke_test/src/sdk/src/s3/model/create_multipart_upload_output.d as _i32; import 'package:smoke_test/src/sdk/src/s3/model/create_multipart_upload_request.dart' as _i31; -import 'package:smoke_test/src/sdk/src/s3/model/csv_input.dart' as _i311; -import 'package:smoke_test/src/sdk/src/s3/model/csv_output.dart' as _i319; +import 'package:smoke_test/src/sdk/src/s3/model/csv_input.dart' as _i313; +import 'package:smoke_test/src/sdk/src/s3/model/csv_output.dart' as _i321; import 'package:smoke_test/src/sdk/src/s3/model/default_retention.dart' as _i216; import 'package:smoke_test/src/sdk/src/s3/model/delete.dart' as _i51; @@ -116,7 +116,7 @@ import 'package:smoke_test/src/sdk/src/s3/model/delete_bucket_tagging_request.da import 'package:smoke_test/src/sdk/src/s3/model/delete_bucket_website_request.dart' as _i45; import 'package:smoke_test/src/sdk/src/s3/model/delete_marker_entry.dart' - as _i254; + as _i256; import 'package:smoke_test/src/sdk/src/s3/model/delete_marker_replication.dart' as _i174; import 'package:smoke_test/src/sdk/src/s3/model/delete_marker_replication_status.dart' @@ -138,10 +138,10 @@ import 'package:smoke_test/src/sdk/src/s3/model/delete_public_access_block_reque import 'package:smoke_test/src/sdk/src/s3/model/deleted_object.dart' as _i53; import 'package:smoke_test/src/sdk/src/s3/model/destination.dart' as _i172; import 'package:smoke_test/src/sdk/src/s3/model/encoding_type.dart' as _i245; -import 'package:smoke_test/src/sdk/src/s3/model/encryption.dart' as _i323; +import 'package:smoke_test/src/sdk/src/s3/model/encryption.dart' as _i325; import 'package:smoke_test/src/sdk/src/s3/model/encryption_configuration.dart' as _i166; -import 'package:smoke_test/src/sdk/src/s3/model/end_event.dart' as _i340; +import 'package:smoke_test/src/sdk/src/s3/model/end_event.dart' as _i342; import 'package:smoke_test/src/sdk/src/s3/model/error.dart' as _i54; import 'package:smoke_test/src/sdk/src/s3/model/error_document.dart' as _i191; import 'package:smoke_test/src/sdk/src/s3/model/event.dart' as _i134; @@ -153,8 +153,8 @@ import 'package:smoke_test/src/sdk/src/s3/model/existing_object_replication_stat as _i162; import 'package:smoke_test/src/sdk/src/s3/model/expiration_status.dart' as _i113; -import 'package:smoke_test/src/sdk/src/s3/model/expression_type.dart' as _i317; -import 'package:smoke_test/src/sdk/src/s3/model/file_header_info.dart' as _i310; +import 'package:smoke_test/src/sdk/src/s3/model/expression_type.dart' as _i319; +import 'package:smoke_test/src/sdk/src/s3/model/file_header_info.dart' as _i312; import 'package:smoke_test/src/sdk/src/s3/model/filter_rule.dart' as _i136; import 'package:smoke_test/src/sdk/src/s3/model/filter_rule_name.dart' as _i135; import 'package:smoke_test/src/sdk/src/s3/model/get_bucket_accelerate_configuration_output.dart' @@ -274,7 +274,7 @@ import 'package:smoke_test/src/sdk/src/s3/model/get_public_access_block_output.d import 'package:smoke_test/src/sdk/src/s3/model/get_public_access_block_request.dart' as _i227; import 'package:smoke_test/src/sdk/src/s3/model/glacier_job_parameters.dart' - as _i308; + as _i310; import 'package:smoke_test/src/sdk/src/s3/model/grant.dart' as _i65; import 'package:smoke_test/src/sdk/src/s3/model/grantee.dart' as _i63; import 'package:smoke_test/src/sdk/src/s3/model/head_bucket_request.dart' @@ -286,7 +286,7 @@ import 'package:smoke_test/src/sdk/src/s3/model/head_object_request.dart' import 'package:smoke_test/src/sdk/src/s3/model/index_document.dart' as _i190; import 'package:smoke_test/src/sdk/src/s3/model/initiator.dart' as _i247; import 'package:smoke_test/src/sdk/src/s3/model/input_serialization.dart' - as _i316; + as _i318; import 'package:smoke_test/src/sdk/src/s3/model/intelligent_tiering_access_tier.dart' as _i91; import 'package:smoke_test/src/sdk/src/s3/model/intelligent_tiering_and_operator.dart' @@ -317,9 +317,9 @@ import 'package:smoke_test/src/sdk/src/s3/model/inventory_s3_bucket_destination. as _i100; import 'package:smoke_test/src/sdk/src/s3/model/inventory_schedule.dart' as _i106; -import 'package:smoke_test/src/sdk/src/s3/model/json_input.dart' as _i314; -import 'package:smoke_test/src/sdk/src/s3/model/json_output.dart' as _i320; -import 'package:smoke_test/src/sdk/src/s3/model/json_type.dart' as _i313; +import 'package:smoke_test/src/sdk/src/s3/model/json_input.dart' as _i316; +import 'package:smoke_test/src/sdk/src/s3/model/json_output.dart' as _i322; +import 'package:smoke_test/src/sdk/src/s3/model/json_type.dart' as _i315; import 'package:smoke_test/src/sdk/src/s3/model/lambda_function_configuration.dart' as _i141; import 'package:smoke_test/src/sdk/src/s3/model/lifecycle_expiration.dart' @@ -352,25 +352,25 @@ import 'package:smoke_test/src/sdk/src/s3/model/list_multipart_uploads_output.da import 'package:smoke_test/src/sdk/src/s3/model/list_multipart_uploads_request.dart' as _i246; import 'package:smoke_test/src/sdk/src/s3/model/list_object_versions_output.dart' - as _i255; + as _i257; import 'package:smoke_test/src/sdk/src/s3/model/list_object_versions_request.dart' - as _i251; + as _i252; import 'package:smoke_test/src/sdk/src/s3/model/list_objects_output.dart' - as _i259; + as _i261; import 'package:smoke_test/src/sdk/src/s3/model/list_objects_request.dart' - as _i256; + as _i258; import 'package:smoke_test/src/sdk/src/s3/model/list_objects_v2_output.dart' - as _i262; + as _i264; import 'package:smoke_test/src/sdk/src/s3/model/list_objects_v2_request.dart' - as _i261; + as _i263; import 'package:smoke_test/src/sdk/src/s3/model/list_parts_output.dart' - as _i265; + as _i267; import 'package:smoke_test/src/sdk/src/s3/model/list_parts_request.dart' - as _i263; + as _i265; import 'package:smoke_test/src/sdk/src/s3/model/logging_enabled.dart' as _i126; import 'package:smoke_test/src/sdk/src/s3/model/metadata_directive.dart' as _i14; -import 'package:smoke_test/src/sdk/src/s3/model/metadata_entry.dart' as _i324; +import 'package:smoke_test/src/sdk/src/s3/model/metadata_entry.dart' as _i326; import 'package:smoke_test/src/sdk/src/s3/model/metrics.dart' as _i171; import 'package:smoke_test/src/sdk/src/s3/model/metrics_and_operator.dart' as _i129; @@ -378,11 +378,11 @@ import 'package:smoke_test/src/sdk/src/s3/model/metrics_configuration.dart' as _i131; import 'package:smoke_test/src/sdk/src/s3/model/metrics_filter.dart' as _i130; import 'package:smoke_test/src/sdk/src/s3/model/metrics_status.dart' as _i170; -import 'package:smoke_test/src/sdk/src/s3/model/mfa_delete.dart' as _i289; +import 'package:smoke_test/src/sdk/src/s3/model/mfa_delete.dart' as _i291; import 'package:smoke_test/src/sdk/src/s3/model/mfa_delete_status.dart' as _i185; import 'package:smoke_test/src/sdk/src/s3/model/multipart_upload.dart' as _i248; -import 'package:smoke_test/src/sdk/src/s3/model/no_such_bucket.dart' as _i260; +import 'package:smoke_test/src/sdk/src/s3/model/no_such_bucket.dart' as _i262; import 'package:smoke_test/src/sdk/src/s3/model/no_such_key.dart' as _i201; import 'package:smoke_test/src/sdk/src/s3/model/no_such_upload.dart' as _i6; import 'package:smoke_test/src/sdk/src/s3/model/noncurrent_version_expiration.dart' @@ -394,9 +394,9 @@ import 'package:smoke_test/src/sdk/src/s3/model/notification_configuration.dart' as _i143; import 'package:smoke_test/src/sdk/src/s3/model/notification_configuration_filter.dart' as _i138; -import 'package:smoke_test/src/sdk/src/s3/model/object.dart' as _i258; +import 'package:smoke_test/src/sdk/src/s3/model/object.dart' as _i260; import 'package:smoke_test/src/sdk/src/s3/model/object_already_in_active_tier_error.dart' - as _i330; + as _i332; import 'package:smoke_test/src/sdk/src/s3/model/object_attributes.dart' as _i204; import 'package:smoke_test/src/sdk/src/s3/model/object_canned_acl.dart' as _i12; @@ -420,95 +420,97 @@ import 'package:smoke_test/src/sdk/src/s3/model/object_not_in_active_tier_error. import 'package:smoke_test/src/sdk/src/s3/model/object_ownership.dart' as _i26; import 'package:smoke_test/src/sdk/src/s3/model/object_part.dart' as _i207; import 'package:smoke_test/src/sdk/src/s3/model/object_storage_class.dart' - as _i257; -import 'package:smoke_test/src/sdk/src/s3/model/object_version.dart' as _i253; + as _i259; +import 'package:smoke_test/src/sdk/src/s3/model/object_version.dart' as _i255; import 'package:smoke_test/src/sdk/src/s3/model/object_version_storage_class.dart' - as _i252; -import 'package:smoke_test/src/sdk/src/s3/model/output_location.dart' as _i326; + as _i253; +import 'package:smoke_test/src/sdk/src/s3/model/optional_object_attributes.dart' + as _i251; +import 'package:smoke_test/src/sdk/src/s3/model/output_location.dart' as _i328; import 'package:smoke_test/src/sdk/src/s3/model/output_serialization.dart' - as _i321; + as _i323; import 'package:smoke_test/src/sdk/src/s3/model/owner.dart' as _i61; import 'package:smoke_test/src/sdk/src/s3/model/owner_override.dart' as _i164; import 'package:smoke_test/src/sdk/src/s3/model/ownership_controls.dart' as _i146; import 'package:smoke_test/src/sdk/src/s3/model/ownership_controls_rule.dart' as _i145; -import 'package:smoke_test/src/sdk/src/s3/model/parquet_input.dart' as _i315; -import 'package:smoke_test/src/sdk/src/s3/model/part.dart' as _i264; +import 'package:smoke_test/src/sdk/src/s3/model/parquet_input.dart' as _i317; +import 'package:smoke_test/src/sdk/src/s3/model/part.dart' as _i266; import 'package:smoke_test/src/sdk/src/s3/model/payer.dart' as _i179; import 'package:smoke_test/src/sdk/src/s3/model/permission.dart' as _i64; import 'package:smoke_test/src/sdk/src/s3/model/policy_status.dart' as _i151; -import 'package:smoke_test/src/sdk/src/s3/model/progress.dart' as _i337; -import 'package:smoke_test/src/sdk/src/s3/model/progress_event.dart' as _i338; +import 'package:smoke_test/src/sdk/src/s3/model/progress.dart' as _i339; +import 'package:smoke_test/src/sdk/src/s3/model/progress_event.dart' as _i340; import 'package:smoke_test/src/sdk/src/s3/model/protocol.dart' as _i188; import 'package:smoke_test/src/sdk/src/s3/model/public_access_block_configuration.dart' as _i228; import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_accelerate_configuration_request.dart' - as _i267; -import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_acl_request.dart' as _i269; +import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_acl_request.dart' + as _i271; import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_analytics_configuration_request.dart' - as _i270; -import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_cors_request.dart' as _i272; +import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_cors_request.dart' + as _i274; import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_encryption_request.dart' - as _i273; + as _i275; import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_intelligent_tiering_configuration_request.dart' - as _i274; + as _i276; import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_inventory_configuration_request.dart' - as _i275; -import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_lifecycle_configuration_request.dart' as _i277; -import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_logging_request.dart' +import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_lifecycle_configuration_request.dart' as _i279; +import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_logging_request.dart' + as _i281; import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_metrics_configuration_request.dart' - as _i280; + as _i282; import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_notification_configuration_request.dart' - as _i281; + as _i283; import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_ownership_controls_request.dart' - as _i282; + as _i284; import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_policy_request.dart' - as _i283; + as _i285; import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_replication_request.dart' - as _i284; -import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_request_payment_request.dart' as _i286; -import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_tagging_request.dart' +import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_request_payment_request.dart' as _i288; +import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_tagging_request.dart' + as _i290; import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_versioning_request.dart' - as _i291; -import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_website_request.dart' as _i293; +import 'package:smoke_test/src/sdk/src/s3/model/put_bucket_website_request.dart' + as _i295; import 'package:smoke_test/src/sdk/src/s3/model/put_object_acl_output.dart' - as _i297; + as _i299; import 'package:smoke_test/src/sdk/src/s3/model/put_object_acl_request.dart' - as _i296; + as _i298; import 'package:smoke_test/src/sdk/src/s3/model/put_object_legal_hold_output.dart' - as _i299; + as _i301; import 'package:smoke_test/src/sdk/src/s3/model/put_object_legal_hold_request.dart' - as _i298; + as _i300; import 'package:smoke_test/src/sdk/src/s3/model/put_object_lock_configuration_output.dart' - as _i301; + as _i303; import 'package:smoke_test/src/sdk/src/s3/model/put_object_lock_configuration_request.dart' - as _i300; + as _i302; import 'package:smoke_test/src/sdk/src/s3/model/put_object_output.dart' - as _i295; + as _i297; import 'package:smoke_test/src/sdk/src/s3/model/put_object_request.dart' - as _i294; + as _i296; import 'package:smoke_test/src/sdk/src/s3/model/put_object_retention_output.dart' - as _i303; + as _i305; import 'package:smoke_test/src/sdk/src/s3/model/put_object_retention_request.dart' - as _i302; + as _i304; import 'package:smoke_test/src/sdk/src/s3/model/put_object_tagging_output.dart' - as _i305; + as _i307; import 'package:smoke_test/src/sdk/src/s3/model/put_object_tagging_request.dart' - as _i304; -import 'package:smoke_test/src/sdk/src/s3/model/put_public_access_block_request.dart' as _i306; +import 'package:smoke_test/src/sdk/src/s3/model/put_public_access_block_request.dart' + as _i308; import 'package:smoke_test/src/sdk/src/s3/model/queue_configuration.dart' as _i140; -import 'package:smoke_test/src/sdk/src/s3/model/quote_fields.dart' as _i318; -import 'package:smoke_test/src/sdk/src/s3/model/records_event.dart' as _i334; +import 'package:smoke_test/src/sdk/src/s3/model/quote_fields.dart' as _i320; +import 'package:smoke_test/src/sdk/src/s3/model/records_event.dart' as _i336; import 'package:smoke_test/src/sdk/src/s3/model/redirect.dart' as _i193; import 'package:smoke_test/src/sdk/src/s3/model/redirect_all_requests_to.dart' as _i189; @@ -535,27 +537,28 @@ import 'package:smoke_test/src/sdk/src/s3/model/replication_time_value.dart' import 'package:smoke_test/src/sdk/src/s3/model/request_charged.dart' as _i4; import 'package:smoke_test/src/sdk/src/s3/model/request_payer.dart' as _i2; import 'package:smoke_test/src/sdk/src/s3/model/request_payment_configuration.dart' - as _i285; -import 'package:smoke_test/src/sdk/src/s3/model/request_progress.dart' as _i331; + as _i287; +import 'package:smoke_test/src/sdk/src/s3/model/request_progress.dart' as _i333; import 'package:smoke_test/src/sdk/src/s3/model/restore_object_output.dart' - as _i329; + as _i331; import 'package:smoke_test/src/sdk/src/s3/model/restore_object_request.dart' - as _i328; -import 'package:smoke_test/src/sdk/src/s3/model/restore_request.dart' as _i327; + as _i330; +import 'package:smoke_test/src/sdk/src/s3/model/restore_request.dart' as _i329; import 'package:smoke_test/src/sdk/src/s3/model/restore_request_type.dart' - as _i309; + as _i311; +import 'package:smoke_test/src/sdk/src/s3/model/restore_status.dart' as _i254; import 'package:smoke_test/src/sdk/src/s3/model/routing_rule.dart' as _i194; import 'package:smoke_test/src/sdk/src/s3/model/s3_key_filter.dart' as _i137; -import 'package:smoke_test/src/sdk/src/s3/model/s3_location.dart' as _i325; -import 'package:smoke_test/src/sdk/src/s3/model/scan_range.dart' as _i332; +import 'package:smoke_test/src/sdk/src/s3/model/s3_location.dart' as _i327; +import 'package:smoke_test/src/sdk/src/s3/model/scan_range.dart' as _i334; import 'package:smoke_test/src/sdk/src/s3/model/select_object_content_event_stream.dart' - as _i341; + as _i343; import 'package:smoke_test/src/sdk/src/s3/model/select_object_content_output.dart' - as _i342; + as _i344; import 'package:smoke_test/src/sdk/src/s3/model/select_object_content_request.dart' - as _i333; + as _i335; import 'package:smoke_test/src/sdk/src/s3/model/select_parameters.dart' - as _i322; + as _i324; import 'package:smoke_test/src/sdk/src/s3/model/server_side_encryption.dart' as _i10; import 'package:smoke_test/src/sdk/src/s3/model/server_side_encryption_by_default.dart' @@ -572,8 +575,8 @@ import 'package:smoke_test/src/sdk/src/s3/model/sse_kms_encrypted_objects_status as _i157; import 'package:smoke_test/src/sdk/src/s3/model/ssekms.dart' as _i98; import 'package:smoke_test/src/sdk/src/s3/model/sses3.dart' as _i97; -import 'package:smoke_test/src/sdk/src/s3/model/stats.dart' as _i335; -import 'package:smoke_test/src/sdk/src/s3/model/stats_event.dart' as _i336; +import 'package:smoke_test/src/sdk/src/s3/model/stats.dart' as _i337; +import 'package:smoke_test/src/sdk/src/s3/model/stats_event.dart' as _i338; import 'package:smoke_test/src/sdk/src/s3/model/storage_class.dart' as _i16; import 'package:smoke_test/src/sdk/src/s3/model/storage_class_analysis.dart' as _i76; @@ -582,10 +585,10 @@ import 'package:smoke_test/src/sdk/src/s3/model/storage_class_analysis_data_expo import 'package:smoke_test/src/sdk/src/s3/model/storage_class_analysis_schema_version.dart' as _i71; import 'package:smoke_test/src/sdk/src/s3/model/tag.dart' as _i68; -import 'package:smoke_test/src/sdk/src/s3/model/tagging.dart' as _i287; +import 'package:smoke_test/src/sdk/src/s3/model/tagging.dart' as _i289; import 'package:smoke_test/src/sdk/src/s3/model/tagging_directive.dart' as _i15; import 'package:smoke_test/src/sdk/src/s3/model/target_grant.dart' as _i125; -import 'package:smoke_test/src/sdk/src/s3/model/tier.dart' as _i307; +import 'package:smoke_test/src/sdk/src/s3/model/tier.dart' as _i309; import 'package:smoke_test/src/sdk/src/s3/model/tiering.dart' as _i92; import 'package:smoke_test/src/sdk/src/s3/model/topic_configuration.dart' as _i139; @@ -594,19 +597,19 @@ import 'package:smoke_test/src/sdk/src/s3/model/transition_storage_class.dart' as _i114; import 'package:smoke_test/src/sdk/src/s3/model/type.dart' as _i62; import 'package:smoke_test/src/sdk/src/s3/model/upload_part_copy_output.dart' - as _i347; + as _i349; import 'package:smoke_test/src/sdk/src/s3/model/upload_part_copy_request.dart' - as _i345; + as _i347; import 'package:smoke_test/src/sdk/src/s3/model/upload_part_output.dart' - as _i344; + as _i346; import 'package:smoke_test/src/sdk/src/s3/model/upload_part_request.dart' - as _i343; + as _i345; import 'package:smoke_test/src/sdk/src/s3/model/versioning_configuration.dart' - as _i290; -import 'package:smoke_test/src/sdk/src/s3/model/website_configuration.dart' as _i292; +import 'package:smoke_test/src/sdk/src/s3/model/website_configuration.dart' + as _i294; import 'package:smoke_test/src/sdk/src/s3/model/write_get_object_response_request.dart' - as _i348; + as _i350; const List<_i1.SmithySerializer> serializers = [ ..._i2.RequestPayer.serializers, @@ -858,263 +861,269 @@ const List<_i1.SmithySerializer> serializers = [ ..._i248.MultipartUpload.serializers, ..._i249.CommonPrefix.serializers, ..._i250.ListMultipartUploadsOutput.serializers, - ..._i251.ListObjectVersionsRequest.serializers, - ..._i252.ObjectVersionStorageClass.serializers, - ..._i253.ObjectVersion.serializers, - ..._i254.DeleteMarkerEntry.serializers, - ..._i255.ListObjectVersionsOutput.serializers, - ..._i256.ListObjectsRequest.serializers, - ..._i257.ObjectStorageClass.serializers, - ..._i258.S3Object.serializers, - ..._i259.ListObjectsOutput.serializers, - ..._i260.NoSuchBucket.serializers, - ..._i261.ListObjectsV2Request.serializers, - ..._i262.ListObjectsV2Output.serializers, - ..._i263.ListPartsRequest.serializers, - ..._i264.Part.serializers, - ..._i265.ListPartsOutput.serializers, - ..._i266.AccelerateConfiguration.serializers, - ..._i267.PutBucketAccelerateConfigurationRequest.serializers, - ..._i268.AccessControlPolicy.serializers, - ..._i269.PutBucketAclRequest.serializers, - ..._i270.PutBucketAnalyticsConfigurationRequest.serializers, - ..._i271.CorsConfiguration.serializers, - ..._i272.PutBucketCorsRequest.serializers, - ..._i273.PutBucketEncryptionRequest.serializers, - ..._i274.PutBucketIntelligentTieringConfigurationRequest.serializers, - ..._i275.PutBucketInventoryConfigurationRequest.serializers, - ..._i276.BucketLifecycleConfiguration.serializers, - ..._i277.PutBucketLifecycleConfigurationRequest.serializers, - ..._i278.BucketLoggingStatus.serializers, - ..._i279.PutBucketLoggingRequest.serializers, - ..._i280.PutBucketMetricsConfigurationRequest.serializers, - ..._i281.PutBucketNotificationConfigurationRequest.serializers, - ..._i282.PutBucketOwnershipControlsRequest.serializers, - ..._i283.PutBucketPolicyRequest.serializers, - ..._i284.PutBucketReplicationRequest.serializers, - ..._i285.RequestPaymentConfiguration.serializers, - ..._i286.PutBucketRequestPaymentRequest.serializers, - ..._i287.Tagging.serializers, - ..._i288.PutBucketTaggingRequest.serializers, - ..._i289.MfaDelete.serializers, - ..._i290.VersioningConfiguration.serializers, - ..._i291.PutBucketVersioningRequest.serializers, - ..._i292.WebsiteConfiguration.serializers, - ..._i293.PutBucketWebsiteRequest.serializers, - ..._i294.PutObjectRequest.serializers, - ..._i295.PutObjectOutput.serializers, - ..._i296.PutObjectAclRequest.serializers, - ..._i297.PutObjectAclOutput.serializers, - ..._i298.PutObjectLegalHoldRequest.serializers, - ..._i299.PutObjectLegalHoldOutput.serializers, - ..._i300.PutObjectLockConfigurationRequest.serializers, - ..._i301.PutObjectLockConfigurationOutput.serializers, - ..._i302.PutObjectRetentionRequest.serializers, - ..._i303.PutObjectRetentionOutput.serializers, - ..._i304.PutObjectTaggingRequest.serializers, - ..._i305.PutObjectTaggingOutput.serializers, - ..._i306.PutPublicAccessBlockRequest.serializers, - ..._i307.Tier.serializers, - ..._i308.GlacierJobParameters.serializers, - ..._i309.RestoreRequestType.serializers, - ..._i310.FileHeaderInfo.serializers, - ..._i311.CsvInput.serializers, - ..._i312.CompressionType.serializers, - ..._i313.JsonType.serializers, - ..._i314.JsonInput.serializers, - ..._i315.ParquetInput.serializers, - ..._i316.InputSerialization.serializers, - ..._i317.ExpressionType.serializers, - ..._i318.QuoteFields.serializers, - ..._i319.CsvOutput.serializers, - ..._i320.JsonOutput.serializers, - ..._i321.OutputSerialization.serializers, - ..._i322.SelectParameters.serializers, - ..._i323.Encryption.serializers, - ..._i324.MetadataEntry.serializers, - ..._i325.S3Location.serializers, - ..._i326.OutputLocation.serializers, - ..._i327.RestoreRequest.serializers, - ..._i328.RestoreObjectRequest.serializers, - ..._i329.RestoreObjectOutput.serializers, - ..._i330.ObjectAlreadyInActiveTierError.serializers, - ..._i331.RequestProgress.serializers, - ..._i332.ScanRange.serializers, - ..._i333.SelectObjectContentRequest.serializers, - ..._i334.RecordsEvent.serializers, - ..._i335.Stats.serializers, - ..._i336.StatsEvent.serializers, - ..._i337.Progress.serializers, - ..._i338.ProgressEvent.serializers, - ..._i339.ContinuationEvent.serializers, - ..._i340.EndEvent.serializers, - ..._i341.SelectObjectContentEventStream.serializers, - ..._i342.SelectObjectContentOutput.serializers, - ..._i343.UploadPartRequest.serializers, - ..._i344.UploadPartOutput.serializers, - ..._i345.UploadPartCopyRequest.serializers, - ..._i346.CopyPartResult.serializers, - ..._i347.UploadPartCopyOutput.serializers, - ..._i348.WriteGetObjectResponseRequest.serializers, + ..._i251.OptionalObjectAttributes.serializers, + ..._i252.ListObjectVersionsRequest.serializers, + ..._i253.ObjectVersionStorageClass.serializers, + ..._i254.RestoreStatus.serializers, + ..._i255.ObjectVersion.serializers, + ..._i256.DeleteMarkerEntry.serializers, + ..._i257.ListObjectVersionsOutput.serializers, + ..._i258.ListObjectsRequest.serializers, + ..._i259.ObjectStorageClass.serializers, + ..._i260.S3Object.serializers, + ..._i261.ListObjectsOutput.serializers, + ..._i262.NoSuchBucket.serializers, + ..._i263.ListObjectsV2Request.serializers, + ..._i264.ListObjectsV2Output.serializers, + ..._i265.ListPartsRequest.serializers, + ..._i266.Part.serializers, + ..._i267.ListPartsOutput.serializers, + ..._i268.AccelerateConfiguration.serializers, + ..._i269.PutBucketAccelerateConfigurationRequest.serializers, + ..._i270.AccessControlPolicy.serializers, + ..._i271.PutBucketAclRequest.serializers, + ..._i272.PutBucketAnalyticsConfigurationRequest.serializers, + ..._i273.CorsConfiguration.serializers, + ..._i274.PutBucketCorsRequest.serializers, + ..._i275.PutBucketEncryptionRequest.serializers, + ..._i276.PutBucketIntelligentTieringConfigurationRequest.serializers, + ..._i277.PutBucketInventoryConfigurationRequest.serializers, + ..._i278.BucketLifecycleConfiguration.serializers, + ..._i279.PutBucketLifecycleConfigurationRequest.serializers, + ..._i280.BucketLoggingStatus.serializers, + ..._i281.PutBucketLoggingRequest.serializers, + ..._i282.PutBucketMetricsConfigurationRequest.serializers, + ..._i283.PutBucketNotificationConfigurationRequest.serializers, + ..._i284.PutBucketOwnershipControlsRequest.serializers, + ..._i285.PutBucketPolicyRequest.serializers, + ..._i286.PutBucketReplicationRequest.serializers, + ..._i287.RequestPaymentConfiguration.serializers, + ..._i288.PutBucketRequestPaymentRequest.serializers, + ..._i289.Tagging.serializers, + ..._i290.PutBucketTaggingRequest.serializers, + ..._i291.MfaDelete.serializers, + ..._i292.VersioningConfiguration.serializers, + ..._i293.PutBucketVersioningRequest.serializers, + ..._i294.WebsiteConfiguration.serializers, + ..._i295.PutBucketWebsiteRequest.serializers, + ..._i296.PutObjectRequest.serializers, + ..._i297.PutObjectOutput.serializers, + ..._i298.PutObjectAclRequest.serializers, + ..._i299.PutObjectAclOutput.serializers, + ..._i300.PutObjectLegalHoldRequest.serializers, + ..._i301.PutObjectLegalHoldOutput.serializers, + ..._i302.PutObjectLockConfigurationRequest.serializers, + ..._i303.PutObjectLockConfigurationOutput.serializers, + ..._i304.PutObjectRetentionRequest.serializers, + ..._i305.PutObjectRetentionOutput.serializers, + ..._i306.PutObjectTaggingRequest.serializers, + ..._i307.PutObjectTaggingOutput.serializers, + ..._i308.PutPublicAccessBlockRequest.serializers, + ..._i309.Tier.serializers, + ..._i310.GlacierJobParameters.serializers, + ..._i311.RestoreRequestType.serializers, + ..._i312.FileHeaderInfo.serializers, + ..._i313.CsvInput.serializers, + ..._i314.CompressionType.serializers, + ..._i315.JsonType.serializers, + ..._i316.JsonInput.serializers, + ..._i317.ParquetInput.serializers, + ..._i318.InputSerialization.serializers, + ..._i319.ExpressionType.serializers, + ..._i320.QuoteFields.serializers, + ..._i321.CsvOutput.serializers, + ..._i322.JsonOutput.serializers, + ..._i323.OutputSerialization.serializers, + ..._i324.SelectParameters.serializers, + ..._i325.Encryption.serializers, + ..._i326.MetadataEntry.serializers, + ..._i327.S3Location.serializers, + ..._i328.OutputLocation.serializers, + ..._i329.RestoreRequest.serializers, + ..._i330.RestoreObjectRequest.serializers, + ..._i331.RestoreObjectOutput.serializers, + ..._i332.ObjectAlreadyInActiveTierError.serializers, + ..._i333.RequestProgress.serializers, + ..._i334.ScanRange.serializers, + ..._i335.SelectObjectContentRequest.serializers, + ..._i336.RecordsEvent.serializers, + ..._i337.Stats.serializers, + ..._i338.StatsEvent.serializers, + ..._i339.Progress.serializers, + ..._i340.ProgressEvent.serializers, + ..._i341.ContinuationEvent.serializers, + ..._i342.EndEvent.serializers, + ..._i343.SelectObjectContentEventStream.serializers, + ..._i344.SelectObjectContentOutput.serializers, + ..._i345.UploadPartRequest.serializers, + ..._i346.UploadPartOutput.serializers, + ..._i347.UploadPartCopyRequest.serializers, + ..._i348.CopyPartResult.serializers, + ..._i349.UploadPartCopyOutput.serializers, + ..._i350.WriteGetObjectResponseRequest.serializers, ]; final Map builderFactories = { const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i7.CompletedPart)], - ): _i349.ListBuilder<_i7.CompletedPart>.new, + ): _i351.ListBuilder<_i7.CompletedPart>.new, const FullType( - _i349.BuiltMap, + _i351.BuiltMap, [ FullType(String), FullType(String), ], - ): _i349.MapBuilder.new, + ): _i351.MapBuilder.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i50.ObjectIdentifier)], - ): _i349.ListBuilder<_i50.ObjectIdentifier>.new, + ): _i351.ListBuilder<_i50.ObjectIdentifier>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i53.DeletedObject)], - ): _i349.ListBuilder<_i53.DeletedObject>.new, + ): _i351.ListBuilder<_i53.DeletedObject>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i54.Error)], - ): _i349.ListBuilder<_i54.Error>.new, + ): _i351.ListBuilder<_i54.Error>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i65.Grant)], - ): _i349.ListBuilder<_i65.Grant>.new, + ): _i351.ListBuilder<_i65.Grant>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i68.Tag)], - ): _i349.ListBuilder<_i68.Tag>.new, + ): _i351.ListBuilder<_i68.Tag>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(String)], - ): _i349.ListBuilder.new, + ): _i351.ListBuilder.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i80.CorsRule)], - ): _i349.ListBuilder<_i80.CorsRule>.new, + ): _i351.ListBuilder<_i80.CorsRule>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i84.ServerSideEncryptionRule)], - ): _i349.ListBuilder<_i84.ServerSideEncryptionRule>.new, + ): _i351.ListBuilder<_i84.ServerSideEncryptionRule>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i92.Tiering)], - ): _i349.ListBuilder<_i92.Tiering>.new, + ): _i351.ListBuilder<_i92.Tiering>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i104.InventoryOptionalField)], - ): _i349.ListBuilder<_i104.InventoryOptionalField>.new, + ): _i351.ListBuilder<_i104.InventoryOptionalField>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i116.NoncurrentVersionTransition)], - ): _i349.ListBuilder<_i116.NoncurrentVersionTransition>.new, + ): _i351.ListBuilder<_i116.NoncurrentVersionTransition>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i115.Transition)], - ): _i349.ListBuilder<_i115.Transition>.new, + ): _i351.ListBuilder<_i115.Transition>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i119.LifecycleRule)], - ): _i349.ListBuilder<_i119.LifecycleRule>.new, + ): _i351.ListBuilder<_i119.LifecycleRule>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i125.TargetGrant)], - ): _i349.ListBuilder<_i125.TargetGrant>.new, + ): _i351.ListBuilder<_i125.TargetGrant>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i136.FilterRule)], - ): _i349.ListBuilder<_i136.FilterRule>.new, + ): _i351.ListBuilder<_i136.FilterRule>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i134.Event)], - ): _i349.ListBuilder<_i134.Event>.new, + ): _i351.ListBuilder<_i134.Event>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i141.LambdaFunctionConfiguration)], - ): _i349.ListBuilder<_i141.LambdaFunctionConfiguration>.new, + ): _i351.ListBuilder<_i141.LambdaFunctionConfiguration>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i140.QueueConfiguration)], - ): _i349.ListBuilder<_i140.QueueConfiguration>.new, + ): _i351.ListBuilder<_i140.QueueConfiguration>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i139.TopicConfiguration)], - ): _i349.ListBuilder<_i139.TopicConfiguration>.new, + ): _i351.ListBuilder<_i139.TopicConfiguration>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i145.OwnershipControlsRule)], - ): _i349.ListBuilder<_i145.OwnershipControlsRule>.new, + ): _i351.ListBuilder<_i145.OwnershipControlsRule>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i175.ReplicationRule)], - ): _i349.ListBuilder<_i175.ReplicationRule>.new, + ): _i351.ListBuilder<_i175.ReplicationRule>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i194.RoutingRule)], - ): _i349.ListBuilder<_i194.RoutingRule>.new, + ): _i351.ListBuilder<_i194.RoutingRule>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i204.ObjectAttributes)], - ): _i349.ListBuilder<_i204.ObjectAttributes>.new, + ): _i351.ListBuilder<_i204.ObjectAttributes>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i207.ObjectPart)], - ): _i349.ListBuilder<_i207.ObjectPart>.new, + ): _i351.ListBuilder<_i207.ObjectPart>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i77.AnalyticsConfiguration)], - ): _i349.ListBuilder<_i77.AnalyticsConfiguration>.new, + ): _i351.ListBuilder<_i77.AnalyticsConfiguration>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i93.IntelligentTieringConfiguration)], - ): _i349.ListBuilder<_i93.IntelligentTieringConfiguration>.new, + ): _i351.ListBuilder<_i93.IntelligentTieringConfiguration>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i107.InventoryConfiguration)], - ): _i349.ListBuilder<_i107.InventoryConfiguration>.new, + ): _i351.ListBuilder<_i107.InventoryConfiguration>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i131.MetricsConfiguration)], - ): _i349.ListBuilder<_i131.MetricsConfiguration>.new, + ): _i351.ListBuilder<_i131.MetricsConfiguration>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i243.Bucket)], - ): _i349.ListBuilder<_i243.Bucket>.new, + ): _i351.ListBuilder<_i243.Bucket>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i249.CommonPrefix)], - ): _i349.ListBuilder<_i249.CommonPrefix>.new, + ): _i351.ListBuilder<_i249.CommonPrefix>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i248.MultipartUpload)], - ): _i349.ListBuilder<_i248.MultipartUpload>.new, + ): _i351.ListBuilder<_i248.MultipartUpload>.new, + const FullType( + _i351.BuiltList, + [FullType(_i251.OptionalObjectAttributes)], + ): _i351.ListBuilder<_i251.OptionalObjectAttributes>.new, const FullType( - _i349.BuiltList, + _i351.BuiltList, [FullType(_i13.ChecksumAlgorithm)], - ): _i349.ListBuilder<_i13.ChecksumAlgorithm>.new, + ): _i351.ListBuilder<_i13.ChecksumAlgorithm>.new, const FullType( - _i349.BuiltList, - [FullType(_i254.DeleteMarkerEntry)], - ): _i349.ListBuilder<_i254.DeleteMarkerEntry>.new, + _i351.BuiltList, + [FullType(_i256.DeleteMarkerEntry)], + ): _i351.ListBuilder<_i256.DeleteMarkerEntry>.new, const FullType( - _i349.BuiltList, - [FullType(_i253.ObjectVersion)], - ): _i349.ListBuilder<_i253.ObjectVersion>.new, + _i351.BuiltList, + [FullType(_i255.ObjectVersion)], + ): _i351.ListBuilder<_i255.ObjectVersion>.new, const FullType( - _i349.BuiltList, - [FullType(_i258.S3Object)], - ): _i349.ListBuilder<_i258.S3Object>.new, + _i351.BuiltList, + [FullType(_i260.S3Object)], + ): _i351.ListBuilder<_i260.S3Object>.new, const FullType( - _i349.BuiltList, - [FullType(_i264.Part)], - ): _i349.ListBuilder<_i264.Part>.new, + _i351.BuiltList, + [FullType(_i266.Part)], + ): _i351.ListBuilder<_i266.Part>.new, const FullType( - _i349.BuiltList, - [FullType(_i324.MetadataEntry)], - ): _i349.ListBuilder<_i324.MetadataEntry>.new, + _i351.BuiltList, + [FullType(_i326.MetadataEntry)], + ): _i351.ListBuilder<_i326.MetadataEntry>.new, }; diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart index f2fd67ee8d..8bee2b25ea 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart @@ -77,7 +77,7 @@ abstract class AbortMultipartUploadRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Key of the object for which the multipart upload was initiated. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/analytics_filter.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/analytics_filter.dart index ea4b776124..28996bc3ae 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/analytics_filter.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/analytics_filter.dart @@ -14,13 +14,13 @@ import 'package:smoke_test/src/sdk/src/s3/model/tag.dart' as _i2; sealed class AnalyticsFilter extends _i1.SmithyUnion { const AnalyticsFilter._(); - const factory AnalyticsFilter.prefix(String prefix) = AnalyticsFilterPrefix; + const factory AnalyticsFilter.prefix(String prefix) = AnalyticsFilterPrefix$; factory AnalyticsFilter.tag({ required String key, required String value, }) => - AnalyticsFilterTag(_i2.Tag( + AnalyticsFilterTag$(_i2.Tag( key: key, value: value, )); @@ -29,7 +29,7 @@ sealed class AnalyticsFilter extends _i1.SmithyUnion { String? prefix, List<_i2.Tag>? tags, }) => - AnalyticsFilterAnd(_i3.AnalyticsAndOperator( + AnalyticsFilterAnd$(_i3.AnalyticsAndOperator( prefix: prefix, tags: tags, )); @@ -37,7 +37,7 @@ sealed class AnalyticsFilter extends _i1.SmithyUnion { const factory AnalyticsFilter.sdkUnknown( String name, Object value, - ) = AnalyticsFilterSdkUnknown; + ) = AnalyticsFilterSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ AnalyticsFilterRestXmlSerializer() @@ -78,8 +78,8 @@ sealed class AnalyticsFilter extends _i1.SmithyUnion { } } -final class AnalyticsFilterPrefix extends AnalyticsFilter { - const AnalyticsFilterPrefix(this.prefix) : super._(); +final class AnalyticsFilterPrefix$ extends AnalyticsFilter { + const AnalyticsFilterPrefix$(this.prefix) : super._(); @override final String prefix; @@ -88,8 +88,8 @@ final class AnalyticsFilterPrefix extends AnalyticsFilter { String get name => 'Prefix'; } -final class AnalyticsFilterTag extends AnalyticsFilter { - const AnalyticsFilterTag(this.tag) : super._(); +final class AnalyticsFilterTag$ extends AnalyticsFilter { + const AnalyticsFilterTag$(this.tag) : super._(); @override final _i2.Tag tag; @@ -98,8 +98,8 @@ final class AnalyticsFilterTag extends AnalyticsFilter { String get name => 'Tag'; } -final class AnalyticsFilterAnd extends AnalyticsFilter { - const AnalyticsFilterAnd(this.and) : super._(); +final class AnalyticsFilterAnd$ extends AnalyticsFilter { + const AnalyticsFilterAnd$(this.and) : super._(); @override final _i3.AnalyticsAndOperator and; @@ -108,8 +108,8 @@ final class AnalyticsFilterAnd extends AnalyticsFilter { String get name => 'And'; } -final class AnalyticsFilterSdkUnknown extends AnalyticsFilter { - const AnalyticsFilterSdkUnknown( +final class AnalyticsFilterSdkUnknown$ extends AnalyticsFilter { + const AnalyticsFilterSdkUnknown$( this.name, this.value, ) : super._(); @@ -128,9 +128,9 @@ class AnalyticsFilterRestXmlSerializer @override Iterable get types => const [ AnalyticsFilter, - AnalyticsFilterPrefix, - AnalyticsFilterTag, - AnalyticsFilterAnd, + AnalyticsFilterPrefix$, + AnalyticsFilterTag$, + AnalyticsFilterAnd$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -148,17 +148,17 @@ class AnalyticsFilterRestXmlSerializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'Prefix': - return AnalyticsFilterPrefix((serializers.deserialize( + return AnalyticsFilterPrefix$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'Tag': - return AnalyticsFilterTag((serializers.deserialize( + return AnalyticsFilterTag$((serializers.deserialize( value, specifiedType: const FullType(_i2.Tag), ) as _i2.Tag)); case 'And': - return AnalyticsFilterAnd((serializers.deserialize( + return AnalyticsFilterAnd$((serializers.deserialize( value, specifiedType: const FullType(_i3.AnalyticsAndOperator), ) as _i3.AnalyticsAndOperator)); @@ -178,19 +178,19 @@ class AnalyticsFilterRestXmlSerializer return [ object.name, switch (object) { - AnalyticsFilterPrefix(:final value) => serializers.serialize( + AnalyticsFilterPrefix$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - AnalyticsFilterTag(:final value) => serializers.serialize( + AnalyticsFilterTag$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Tag), ), - AnalyticsFilterAnd(:final value) => serializers.serialize( + AnalyticsFilterAnd$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.AnalyticsAndOperator), ), - AnalyticsFilterSdkUnknown(:final value) => value, + AnalyticsFilterSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart index 5e316380d2..c6672f21bc 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart @@ -116,7 +116,7 @@ abstract class CompleteMultipartUploadOutput /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get bucket; /// The object key of the newly created object. @@ -266,7 +266,7 @@ abstract class CompleteMultipartUploadOutputPayload /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get bucket; /// The base64-encoded, 32-bit CRC32 checksum of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) in the _Amazon S3 User Guide_. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart index 2fee7e221c..168ff095ea 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart @@ -127,7 +127,7 @@ abstract class CompleteMultipartUploadRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Object key for which the multipart upload was initiated. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/copy_object_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/copy_object_request.dart index fad53638b7..c3f18ecb99 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/copy_object_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/copy_object_request.dart @@ -324,7 +324,7 @@ abstract class CopyObjectRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Specifies caching behavior along the request/reply chain. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart index 9dca51d321..fdac9a0b15 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart @@ -135,7 +135,7 @@ abstract class CreateMultipartUploadOutput /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get bucket; /// Object key for which the multipart upload was initiated. @@ -269,7 +269,7 @@ abstract class CreateMultipartUploadOutputPayload /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get bucket; /// Object key for which the multipart upload was initiated. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart index d7873ac1a1..056a7ac608 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart @@ -250,7 +250,7 @@ abstract class CreateMultipartUploadRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Specifies caching behavior along the request/reply chain. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_object_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_object_request.dart index 621bddda6b..640f08b520 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_object_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_object_request.dart @@ -88,7 +88,7 @@ abstract class DeleteObjectRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Key name of the object to delete. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_object_tagging_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_object_tagging_request.dart index 2b773beb6b..6b48de6063 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_object_tagging_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_object_tagging_request.dart @@ -70,7 +70,7 @@ abstract class DeleteObjectTaggingRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// The key that identifies the object in the bucket from which to remove all tags. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_objects_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_objects_request.dart index d72af8abcb..00c2be5d08 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_objects_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/delete_objects_request.dart @@ -88,7 +88,7 @@ abstract class DeleteObjectsRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Container for the request. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/encoding_type.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/encoding_type.dart index a065bd6961..3194ce5c02 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/encoding_type.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/encoding_type.dart @@ -5,7 +5,7 @@ library smoke_test.s3.model.encoding_type; // ignore_for_file: no_leading_unders import 'package:smithy/smithy.dart' as _i1; -/// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. +/// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key can contain any Unicode character; however, the XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. class EncodingType extends _i1.SmithyEnum { const EncodingType._( int index, diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_attributes_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_attributes_request.dart index 788654bcc5..4618c93dff 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_attributes_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_attributes_request.dart @@ -118,7 +118,7 @@ abstract class GetObjectAttributesRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// The object key. @@ -148,7 +148,7 @@ abstract class GetObjectAttributesRequest /// The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code `403 Forbidden` (access denied). String? get expectedBucketOwner; - /// An XML header that specifies the fields at the root level that you want returned in the response. Fields that you do not specify are not returned. + /// Specifies the fields at the root level that you want returned in the response. Fields that you do not specify are not returned. _i5.BuiltList<_i4.ObjectAttributes> get objectAttributes; @override String labelFor(String key) { diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_request.dart index 7eda17fb57..6d9c0f4527 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_request.dart @@ -181,7 +181,7 @@ abstract class GetObjectRequest /// /// When using an Object Lambda access point the hostname takes the form _AccessPointName_-_AccountId_.s3-object-lambda._Region_.amazonaws.com. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Return the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_tagging_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_tagging_request.dart index 4f6c953c5e..fc2d6791f7 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_tagging_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/get_object_tagging_request.dart @@ -77,7 +77,7 @@ abstract class GetObjectTaggingRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Object key for which to get the tagging information. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/head_bucket_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/head_bucket_request.dart index 63fcf095f7..f3d83c850f 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/head_bucket_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/head_bucket_request.dart @@ -61,7 +61,7 @@ abstract class HeadBucketRequest /// /// When you use this action with an Object Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name. If the Object Lambda access point alias in a request is not valid, the error code `InvalidAccessPointAliasError` is returned. For more information about `InvalidAccessPointAliasError`, see [List of Error Codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList). /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code `403 Forbidden` (access denied). diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/head_object_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/head_object_request.dart index 1ab6bbbf5f..db727df37e 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/head_object_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/head_object_request.dart @@ -141,7 +141,7 @@ abstract class HeadObjectRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Return the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/lifecycle_rule_filter.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/lifecycle_rule_filter.dart index ee1505e788..98d292ea79 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/lifecycle_rule_filter.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/lifecycle_rule_filter.dart @@ -16,23 +16,23 @@ sealed class LifecycleRuleFilter extends _i1.SmithyUnion { const LifecycleRuleFilter._(); const factory LifecycleRuleFilter.prefix(String prefix) = - LifecycleRuleFilterPrefix; + LifecycleRuleFilterPrefix$; factory LifecycleRuleFilter.tag({ required String key, required String value, }) => - LifecycleRuleFilterTag(_i2.Tag( + LifecycleRuleFilterTag$(_i2.Tag( key: key, value: value, )); const factory LifecycleRuleFilter.objectSizeGreaterThan( _i3.Int64 objectSizeGreaterThan) = - LifecycleRuleFilterObjectSizeGreaterThan; + LifecycleRuleFilterObjectSizeGreaterThan$; const factory LifecycleRuleFilter.objectSizeLessThan( - _i3.Int64 objectSizeLessThan) = LifecycleRuleFilterObjectSizeLessThan; + _i3.Int64 objectSizeLessThan) = LifecycleRuleFilterObjectSizeLessThan$; factory LifecycleRuleFilter.and({ String? prefix, @@ -40,7 +40,7 @@ sealed class LifecycleRuleFilter extends _i1.SmithyUnion { _i3.Int64? objectSizeGreaterThan, _i3.Int64? objectSizeLessThan, }) => - LifecycleRuleFilterAnd(_i4.LifecycleRuleAndOperator( + LifecycleRuleFilterAnd$(_i4.LifecycleRuleAndOperator( prefix: prefix, tags: tags, objectSizeGreaterThan: objectSizeGreaterThan, @@ -50,7 +50,7 @@ sealed class LifecycleRuleFilter extends _i1.SmithyUnion { const factory LifecycleRuleFilter.sdkUnknown( String name, Object value, - ) = LifecycleRuleFilterSdkUnknown; + ) = LifecycleRuleFilterSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ LifecycleRuleFilterRestXmlSerializer() @@ -112,8 +112,8 @@ sealed class LifecycleRuleFilter extends _i1.SmithyUnion { } } -final class LifecycleRuleFilterPrefix extends LifecycleRuleFilter { - const LifecycleRuleFilterPrefix(this.prefix) : super._(); +final class LifecycleRuleFilterPrefix$ extends LifecycleRuleFilter { + const LifecycleRuleFilterPrefix$(this.prefix) : super._(); @override final String prefix; @@ -122,8 +122,8 @@ final class LifecycleRuleFilterPrefix extends LifecycleRuleFilter { String get name => 'Prefix'; } -final class LifecycleRuleFilterTag extends LifecycleRuleFilter { - const LifecycleRuleFilterTag(this.tag) : super._(); +final class LifecycleRuleFilterTag$ extends LifecycleRuleFilter { + const LifecycleRuleFilterTag$(this.tag) : super._(); @override final _i2.Tag tag; @@ -132,9 +132,9 @@ final class LifecycleRuleFilterTag extends LifecycleRuleFilter { String get name => 'Tag'; } -final class LifecycleRuleFilterObjectSizeGreaterThan +final class LifecycleRuleFilterObjectSizeGreaterThan$ extends LifecycleRuleFilter { - const LifecycleRuleFilterObjectSizeGreaterThan(this.objectSizeGreaterThan) + const LifecycleRuleFilterObjectSizeGreaterThan$(this.objectSizeGreaterThan) : super._(); @override @@ -144,8 +144,8 @@ final class LifecycleRuleFilterObjectSizeGreaterThan String get name => 'ObjectSizeGreaterThan'; } -final class LifecycleRuleFilterObjectSizeLessThan extends LifecycleRuleFilter { - const LifecycleRuleFilterObjectSizeLessThan(this.objectSizeLessThan) +final class LifecycleRuleFilterObjectSizeLessThan$ extends LifecycleRuleFilter { + const LifecycleRuleFilterObjectSizeLessThan$(this.objectSizeLessThan) : super._(); @override @@ -155,8 +155,8 @@ final class LifecycleRuleFilterObjectSizeLessThan extends LifecycleRuleFilter { String get name => 'ObjectSizeLessThan'; } -final class LifecycleRuleFilterAnd extends LifecycleRuleFilter { - const LifecycleRuleFilterAnd(this.and) : super._(); +final class LifecycleRuleFilterAnd$ extends LifecycleRuleFilter { + const LifecycleRuleFilterAnd$(this.and) : super._(); @override final _i4.LifecycleRuleAndOperator and; @@ -165,8 +165,8 @@ final class LifecycleRuleFilterAnd extends LifecycleRuleFilter { String get name => 'And'; } -final class LifecycleRuleFilterSdkUnknown extends LifecycleRuleFilter { - const LifecycleRuleFilterSdkUnknown( +final class LifecycleRuleFilterSdkUnknown$ extends LifecycleRuleFilter { + const LifecycleRuleFilterSdkUnknown$( this.name, this.value, ) : super._(); @@ -185,11 +185,11 @@ class LifecycleRuleFilterRestXmlSerializer @override Iterable get types => const [ LifecycleRuleFilter, - LifecycleRuleFilterPrefix, - LifecycleRuleFilterTag, - LifecycleRuleFilterObjectSizeGreaterThan, - LifecycleRuleFilterObjectSizeLessThan, - LifecycleRuleFilterAnd, + LifecycleRuleFilterPrefix$, + LifecycleRuleFilterTag$, + LifecycleRuleFilterObjectSizeGreaterThan$, + LifecycleRuleFilterObjectSizeLessThan$, + LifecycleRuleFilterAnd$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -207,28 +207,28 @@ class LifecycleRuleFilterRestXmlSerializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'Prefix': - return LifecycleRuleFilterPrefix((serializers.deserialize( + return LifecycleRuleFilterPrefix$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'Tag': - return LifecycleRuleFilterTag((serializers.deserialize( + return LifecycleRuleFilterTag$((serializers.deserialize( value, specifiedType: const FullType(_i2.Tag), ) as _i2.Tag)); case 'ObjectSizeGreaterThan': - return LifecycleRuleFilterObjectSizeGreaterThan( + return LifecycleRuleFilterObjectSizeGreaterThan$( (serializers.deserialize( value, specifiedType: const FullType(_i3.Int64), ) as _i3.Int64)); case 'ObjectSizeLessThan': - return LifecycleRuleFilterObjectSizeLessThan((serializers.deserialize( + return LifecycleRuleFilterObjectSizeLessThan$((serializers.deserialize( value, specifiedType: const FullType(_i3.Int64), ) as _i3.Int64)); case 'And': - return LifecycleRuleFilterAnd((serializers.deserialize( + return LifecycleRuleFilterAnd$((serializers.deserialize( value, specifiedType: const FullType(_i4.LifecycleRuleAndOperator), ) as _i4.LifecycleRuleAndOperator)); @@ -248,29 +248,29 @@ class LifecycleRuleFilterRestXmlSerializer return [ object.name, switch (object) { - LifecycleRuleFilterPrefix(:final value) => serializers.serialize( + LifecycleRuleFilterPrefix$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - LifecycleRuleFilterTag(:final value) => serializers.serialize( + LifecycleRuleFilterTag$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Tag), ), - LifecycleRuleFilterObjectSizeGreaterThan(:final value) => + LifecycleRuleFilterObjectSizeGreaterThan$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.Int64), ), - LifecycleRuleFilterObjectSizeLessThan(:final value) => + LifecycleRuleFilterObjectSizeLessThan$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.Int64), ), - LifecycleRuleFilterAnd(:final value) => serializers.serialize( + LifecycleRuleFilterAnd$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i4.LifecycleRuleAndOperator), ), - LifecycleRuleFilterSdkUnknown(:final value) => value, + LifecycleRuleFilterSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_analytics_configurations_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_analytics_configurations_request.dart index d2d2a1b195..5993b1a672 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_analytics_configurations_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_analytics_configurations_request.dart @@ -68,7 +68,7 @@ abstract class ListBucketAnalyticsConfigurationsRequest /// The name of the bucket from which analytics configurations are retrieved. String get bucket; - /// The ContinuationToken that represents a placeholder from where this request should begin. + /// The `ContinuationToken` that represents a placeholder from where this request should begin. String? get continuationToken; /// The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code `403 Forbidden` (access denied). diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_inventory_configurations_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_inventory_configurations_request.dart index 91ea8680da..68fed416d0 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_inventory_configurations_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_inventory_configurations_request.dart @@ -68,7 +68,7 @@ abstract class ListBucketInventoryConfigurationsRequest /// The name of the bucket containing the inventory configurations to retrieve. String get bucket; - /// The marker used to continue an inventory configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands. + /// The marker used to continue an inventory configuration listing that has been truncated. Use the `NextContinuationToken` from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands. String? get continuationToken; /// The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code `403 Forbidden` (access denied). diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_metrics_configurations_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_metrics_configurations_request.dart index 7c9d3717a5..c91f7b8216 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_metrics_configurations_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_bucket_metrics_configurations_request.dart @@ -66,7 +66,7 @@ abstract class ListBucketMetricsConfigurationsRequest /// The name of the bucket containing the metrics configurations to retrieve. String get bucket; - /// The marker that is used to continue a metrics configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands. + /// The marker that is used to continue a metrics configuration listing that has been truncated. Use the `NextContinuationToken` from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands. String? get continuationToken; /// The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code `403 Forbidden` (access denied). diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart index 75dcff3371..a0b485e51e 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart @@ -129,7 +129,7 @@ abstract class ListMultipartUploadsOutput /// Encoding type used by Amazon S3 to encode object keys in the response. /// - /// If you specify `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: + /// If you specify the `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: /// /// `Delimiter`, `KeyMarker`, `Prefix`, `NextKeyMarker`, `Key`. _i5.EncodingType? get encodingType; @@ -258,7 +258,7 @@ abstract class ListMultipartUploadsOutputPayload /// Encoding type used by Amazon S3 to encode object keys in the response. /// - /// If you specify `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: + /// If you specify the `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: /// /// `Delimiter`, `KeyMarker`, `Prefix`, `NextKeyMarker`, `Key`. _i5.EncodingType? get encodingType; diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart index 8ac8e9eb4a..085e5222e6 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart @@ -99,7 +99,7 @@ abstract class ListMultipartUploadsRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Character you use to group keys. @@ -107,10 +107,10 @@ abstract class ListMultipartUploadsRequest /// All keys that contain the same string between the prefix, if specified, and the first occurrence of the delimiter after the prefix are grouped under a single result element, `CommonPrefixes`. If you don't specify the prefix parameter, then the substring starts at the beginning of the key. The keys that are grouped under `CommonPrefixes` result element are not returned elsewhere in the response. String? get delimiter; - /// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. + /// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key can contain any Unicode character; however, the XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. _i3.EncodingType? get encodingType; - /// Together with upload-id-marker, this parameter specifies the multipart upload after which listing should begin. + /// Together with `upload-id-marker`, this parameter specifies the multipart upload after which listing should begin. /// /// If `upload-id-marker` is not specified, only the keys lexicographically greater than the specified `key-marker` will be included in the list. /// @@ -120,7 +120,7 @@ abstract class ListMultipartUploadsRequest /// Sets the maximum number of multipart uploads, from 1 to 1,000, to return in the response body. 1,000 is the maximum number of uploads that can be returned in a response. int? get maxUploads; - /// Lists in-progress uploads only for those keys that begin with the specified prefix. You can use prefixes to separate a bucket into different grouping of keys. (You can think of using prefix to make groups in the same way you'd use a folder in a file system.) + /// Lists in-progress uploads only for those keys that begin with the specified prefix. You can use prefixes to separate a bucket into different grouping of keys. (You can think of using `prefix` to make groups in the same way that you'd use a folder in a file system.) String? get prefix; /// Together with key-marker, specifies the multipart upload after which listing should begin. If key-marker is not specified, the upload-id-marker parameter is ignored. Otherwise, any multipart uploads for a key equal to the key-marker might be included in the list only if they have an upload ID lexicographically greater than the specified `upload-id-marker`. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_output.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_output.dart index 1962c42bfc..4b5c00025d 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_output.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_output.dart @@ -102,7 +102,7 @@ abstract class ListObjectVersionsOutput @BuiltValueHook(initializeBuilder: true) static void _init(ListObjectVersionsOutputBuilder b) {} - /// A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria. If your results were truncated, you can make a follow-up paginated request using the NextKeyMarker and NextVersionIdMarker response parameters as a starting place in another request to return the rest of the results. + /// A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria. If your results were truncated, you can make a follow-up paginated request by using the `NextKeyMarker` and `NextVersionIdMarker` response parameters as a starting place in another request to return the rest of the results. bool? get isTruncated; /// Marks the last key returned in a truncated response. @@ -114,7 +114,7 @@ abstract class ListObjectVersionsOutput /// When the number of responses exceeds the value of `MaxKeys`, `NextKeyMarker` specifies the first key not returned that satisfies the search criteria. Use this value for the key-marker request parameter in a subsequent request. String? get nextKeyMarker; - /// When the number of responses exceeds the value of `MaxKeys`, `NextVersionIdMarker` specifies the first object version not returned that satisfies the search criteria. Use this value for the version-id-marker request parameter in a subsequent request. + /// When the number of responses exceeds the value of `MaxKeys`, `NextVersionIdMarker` specifies the first object version not returned that satisfies the search criteria. Use this value for the `version-id-marker` request parameter in a subsequent request. String? get nextVersionIdMarker; /// Container for version information. @@ -129,7 +129,7 @@ abstract class ListObjectVersionsOutput /// Selects objects that start with the value supplied by this parameter. String? get prefix; - /// The delimiter grouping the included keys. A delimiter is a character that you specify to group keys. All keys that contain the same string between the prefix and the first occurrence of the delimiter are grouped under a single result element in `CommonPrefixes`. These groups are counted as one result against the max-keys limitation. These keys are not returned elsewhere in the response. + /// The delimiter grouping the included keys. A delimiter is a character that you specify to group keys. All keys that contain the same string between the prefix and the first occurrence of the delimiter are grouped under a single result element in `CommonPrefixes`. These groups are counted as one result against the `max-keys` limitation. These keys are not returned elsewhere in the response. String? get delimiter; /// Specifies the maximum number of objects to return. @@ -140,7 +140,7 @@ abstract class ListObjectVersionsOutput /// Encoding type used by Amazon S3 to encode object key names in the XML response. /// - /// If you specify encoding-type request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: + /// If you specify the `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: /// /// `KeyMarker, NextKeyMarker, Prefix, Key`, and `Delimiter`. _i6.EncodingType? get encodingType; @@ -272,17 +272,17 @@ abstract class ListObjectVersionsOutputPayload /// Container for an object that is a delete marker. _i8.BuiltList<_i4.DeleteMarkerEntry>? get deleteMarkers; - /// The delimiter grouping the included keys. A delimiter is a character that you specify to group keys. All keys that contain the same string between the prefix and the first occurrence of the delimiter are grouped under a single result element in `CommonPrefixes`. These groups are counted as one result against the max-keys limitation. These keys are not returned elsewhere in the response. + /// The delimiter grouping the included keys. A delimiter is a character that you specify to group keys. All keys that contain the same string between the prefix and the first occurrence of the delimiter are grouped under a single result element in `CommonPrefixes`. These groups are counted as one result against the `max-keys` limitation. These keys are not returned elsewhere in the response. String? get delimiter; /// Encoding type used by Amazon S3 to encode object key names in the XML response. /// - /// If you specify encoding-type request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: + /// If you specify the `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: /// /// `KeyMarker, NextKeyMarker, Prefix, Key`, and `Delimiter`. _i6.EncodingType? get encodingType; - /// A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria. If your results were truncated, you can make a follow-up paginated request using the NextKeyMarker and NextVersionIdMarker response parameters as a starting place in another request to return the rest of the results. + /// A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria. If your results were truncated, you can make a follow-up paginated request by using the `NextKeyMarker` and `NextVersionIdMarker` response parameters as a starting place in another request to return the rest of the results. bool? get isTruncated; /// Marks the last key returned in a truncated response. @@ -297,7 +297,7 @@ abstract class ListObjectVersionsOutputPayload /// When the number of responses exceeds the value of `MaxKeys`, `NextKeyMarker` specifies the first key not returned that satisfies the search criteria. Use this value for the key-marker request parameter in a subsequent request. String? get nextKeyMarker; - /// When the number of responses exceeds the value of `MaxKeys`, `NextVersionIdMarker` specifies the first object version not returned that satisfies the search criteria. Use this value for the version-id-marker request parameter in a subsequent request. + /// When the number of responses exceeds the value of `MaxKeys`, `NextVersionIdMarker` specifies the first object version not returned that satisfies the search criteria. Use this value for the `version-id-marker` request parameter in a subsequent request. String? get nextVersionIdMarker; /// Selects objects that start with the value supplied by this parameter. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_request.dart index efcfd32c5c..76c2861c55 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_request.dart @@ -4,11 +4,14 @@ library smoke_test.s3.model.list_object_versions_request; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i2; +import 'package:built_collection/built_collection.dart' as _i6; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:meta/meta.dart' as _i5; +import 'package:meta/meta.dart' as _i7; import 'package:smithy/smithy.dart' as _i1; import 'package:smoke_test/src/sdk/src/s3/model/encoding_type.dart' as _i3; +import 'package:smoke_test/src/sdk/src/s3/model/optional_object_attributes.dart' + as _i5; import 'package:smoke_test/src/sdk/src/s3/model/request_payer.dart' as _i4; part 'list_object_versions_request.g.dart'; @@ -31,6 +34,7 @@ abstract class ListObjectVersionsRequest String? versionIdMarker, String? expectedBucketOwner, _i4.RequestPayer? requestPayer, + List<_i5.OptionalObjectAttributes>? optionalObjectAttributes, }) { return _$ListObjectVersionsRequest._( bucket: bucket, @@ -42,6 +46,9 @@ abstract class ListObjectVersionsRequest versionIdMarker: versionIdMarker, expectedBucketOwner: expectedBucketOwner, requestPayer: requestPayer, + optionalObjectAttributes: optionalObjectAttributes == null + ? null + : _i6.BuiltList(optionalObjectAttributes), ); } @@ -65,6 +72,12 @@ abstract class ListObjectVersionsRequest b.requestPayer = _i4.RequestPayer.values .byValue(request.headers['x-amz-request-payer']!); } + if (request.headers['x-amz-optional-object-attributes'] != null) { + b.optionalObjectAttributes.addAll(_i1 + .parseHeader(request.headers['x-amz-optional-object-attributes']!) + .map((el) => + _i5.OptionalObjectAttributes.values.byValue(el.trim()))); + } if (request.queryParameters['delimiter'] != null) { b.delimiter = request.queryParameters['delimiter']!; } @@ -98,19 +111,19 @@ abstract class ListObjectVersionsRequest /// The bucket name that contains the objects. String get bucket; - /// A delimiter is a character that you specify to group keys. All keys that contain the same string between the `prefix` and the first occurrence of the delimiter are grouped under a single result element in CommonPrefixes. These groups are counted as one result against the max-keys limitation. These keys are not returned elsewhere in the response. + /// A delimiter is a character that you specify to group keys. All keys that contain the same string between the `prefix` and the first occurrence of the delimiter are grouped under a single result element in `CommonPrefixes`. These groups are counted as one result against the `max-keys` limitation. These keys are not returned elsewhere in the response. String? get delimiter; - /// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. + /// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key can contain any Unicode character; however, the XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. _i3.EncodingType? get encodingType; /// Specifies the key to start with when listing objects in a bucket. String? get keyMarker; - /// Sets the maximum number of keys returned in the response. By default the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. If additional keys satisfy the search criteria, but were not returned because max-keys was exceeded, the response contains true. To return the additional keys, see key-marker and version-id-marker. + /// Sets the maximum number of keys returned in the response. By default, the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. If additional keys satisfy the search criteria, but were not returned because `max-keys` was exceeded, the response contains `true`. To return the additional keys, see `key-marker` and `version-id-marker`. int? get maxKeys; - /// Use this parameter to select only those keys that begin with the specified prefix. You can use prefixes to separate a bucket into different groupings of keys. (You can think of using prefix to make groups in the same way you'd use a folder in a file system.) You can use prefix with delimiter to roll up numerous objects into a single result under CommonPrefixes. + /// Use this parameter to select only those keys that begin with the specified prefix. You can use prefixes to separate a bucket into different groupings of keys. (You can think of using `prefix` to make groups in the same way that you'd use a folder in a file system.) You can use `prefix` with `delimiter` to roll up numerous objects into a single result under `CommonPrefixes`. String? get prefix; /// Specifies the object version you want to start listing from. @@ -121,6 +134,9 @@ abstract class ListObjectVersionsRequest /// Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from Requester Pays buckets, see [Downloading Objects in Requester Pays Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the _Amazon S3 User Guide_. _i4.RequestPayer? get requestPayer; + + /// Specifies the optional fields that you want returned in the response. Fields that you do not specify are not returned. + _i6.BuiltList<_i5.OptionalObjectAttributes>? get optionalObjectAttributes; @override String labelFor(String key) { switch (key) { @@ -147,6 +163,7 @@ abstract class ListObjectVersionsRequest versionIdMarker, expectedBucketOwner, requestPayer, + optionalObjectAttributes, ]; @override String toString() { @@ -186,12 +203,16 @@ abstract class ListObjectVersionsRequest ..add( 'requestPayer', requestPayer, + ) + ..add( + 'optionalObjectAttributes', + optionalObjectAttributes, ); return helper.toString(); } } -@_i5.internal +@_i7.internal abstract class ListObjectVersionsRequestPayload with _i2.AWSEquatable diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_request.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_request.g.dart index a43b4c1d6c..103f0ce3ac 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_request.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_object_versions_request.g.dart @@ -25,6 +25,8 @@ class _$ListObjectVersionsRequest extends ListObjectVersionsRequest { final String? expectedBucketOwner; @override final _i4.RequestPayer? requestPayer; + @override + final _i6.BuiltList<_i5.OptionalObjectAttributes>? optionalObjectAttributes; factory _$ListObjectVersionsRequest( [void Function(ListObjectVersionsRequestBuilder)? updates]) => @@ -39,7 +41,8 @@ class _$ListObjectVersionsRequest extends ListObjectVersionsRequest { this.prefix, this.versionIdMarker, this.expectedBucketOwner, - this.requestPayer}) + this.requestPayer, + this.optionalObjectAttributes}) : super._() { BuiltValueNullFieldError.checkNotNull( bucket, r'ListObjectVersionsRequest', 'bucket'); @@ -66,7 +69,8 @@ class _$ListObjectVersionsRequest extends ListObjectVersionsRequest { prefix == other.prefix && versionIdMarker == other.versionIdMarker && expectedBucketOwner == other.expectedBucketOwner && - requestPayer == other.requestPayer; + requestPayer == other.requestPayer && + optionalObjectAttributes == other.optionalObjectAttributes; } @override @@ -81,6 +85,7 @@ class _$ListObjectVersionsRequest extends ListObjectVersionsRequest { _$hash = $jc(_$hash, versionIdMarker.hashCode); _$hash = $jc(_$hash, expectedBucketOwner.hashCode); _$hash = $jc(_$hash, requestPayer.hashCode); + _$hash = $jc(_$hash, optionalObjectAttributes.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -131,6 +136,15 @@ class ListObjectVersionsRequestBuilder set requestPayer(_i4.RequestPayer? requestPayer) => _$this._requestPayer = requestPayer; + _i6.ListBuilder<_i5.OptionalObjectAttributes>? _optionalObjectAttributes; + _i6.ListBuilder<_i5.OptionalObjectAttributes> get optionalObjectAttributes => + _$this._optionalObjectAttributes ??= + new _i6.ListBuilder<_i5.OptionalObjectAttributes>(); + set optionalObjectAttributes( + _i6.ListBuilder<_i5.OptionalObjectAttributes>? + optionalObjectAttributes) => + _$this._optionalObjectAttributes = optionalObjectAttributes; + ListObjectVersionsRequestBuilder() { ListObjectVersionsRequest._init(this); } @@ -147,6 +161,7 @@ class ListObjectVersionsRequestBuilder _versionIdMarker = $v.versionIdMarker; _expectedBucketOwner = $v.expectedBucketOwner; _requestPayer = $v.requestPayer; + _optionalObjectAttributes = $v.optionalObjectAttributes?.toBuilder(); _$v = null; } return this; @@ -167,18 +182,32 @@ class ListObjectVersionsRequestBuilder ListObjectVersionsRequest build() => _build(); _$ListObjectVersionsRequest _build() { - final _$result = _$v ?? - new _$ListObjectVersionsRequest._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'ListObjectVersionsRequest', 'bucket'), - delimiter: delimiter, - encodingType: encodingType, - keyMarker: keyMarker, - maxKeys: maxKeys, - prefix: prefix, - versionIdMarker: versionIdMarker, - expectedBucketOwner: expectedBucketOwner, - requestPayer: requestPayer); + _$ListObjectVersionsRequest _$result; + try { + _$result = _$v ?? + new _$ListObjectVersionsRequest._( + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, r'ListObjectVersionsRequest', 'bucket'), + delimiter: delimiter, + encodingType: encodingType, + keyMarker: keyMarker, + maxKeys: maxKeys, + prefix: prefix, + versionIdMarker: versionIdMarker, + expectedBucketOwner: expectedBucketOwner, + requestPayer: requestPayer, + optionalObjectAttributes: _optionalObjectAttributes?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'optionalObjectAttributes'; + _optionalObjectAttributes?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ListObjectVersionsRequest', _$failedField, e.toString()); + } + rethrow; + } replace(_$result); return _$result; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_output.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_output.dart index c3b03bc918..74bd78e0f4 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_output.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_output.dart @@ -93,7 +93,9 @@ abstract class ListObjectsOutput /// Indicates where in the bucket listing begins. Marker is included in the response if it was sent with the request. String? get marker; - /// When response is truncated (the IsTruncated element value in the response is true), you can use the key name in this field as marker in the subsequent request to get next set of objects. Amazon S3 lists objects in alphabetical order Note: This element is returned only if you have delimiter request parameter specified. If response does not include the NextMarker and it is truncated, you can use the value of the last Key in the response as the marker in the subsequent request to get the next set of object keys. + /// When the response is truncated (the `IsTruncated` element value in the response is `true`), you can use the key name in this field as the `marker` parameter in the subsequent request to get the next set of objects. Amazon S3 lists objects in alphabetical order. + /// + /// This element is returned only if you have the `delimiter` request parameter specified. If the response does not include the `NextMarker` element and it is truncated, you can use the value of the last `Key` element in the response as the `marker` parameter in the subsequent request to get the next set of object keys. String? get nextMarker; /// Metadata about each object returned. @@ -113,13 +115,13 @@ abstract class ListObjectsOutput /// All of the keys (up to 1,000) rolled up in a common prefix count as a single return when calculating the number of returns. /// - /// A response can contain CommonPrefixes only if you specify a delimiter. + /// A response can contain `CommonPrefixes` only if you specify a delimiter. /// - /// CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by the delimiter. + /// `CommonPrefixes` contains all (if there are any) keys between `Prefix` and the next occurrence of the string specified by the delimiter. /// - /// CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix. + /// `CommonPrefixes` lists keys that act like subdirectories in the directory specified by `Prefix`. /// - /// For example, if the prefix is notes/ and the delimiter is a slash (/) as in notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns. + /// For example, if the prefix is `notes/` and the delimiter is a slash (`/`), as in `notes/summer/july`, the common prefix is `notes/summer/`. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns. _i7.BuiltList<_i4.CommonPrefix>? get commonPrefixes; /// Encoding type used by Amazon S3 to encode object keys in the response. @@ -225,13 +227,13 @@ abstract class ListObjectsOutputPayload /// All of the keys (up to 1,000) rolled up in a common prefix count as a single return when calculating the number of returns. /// - /// A response can contain CommonPrefixes only if you specify a delimiter. + /// A response can contain `CommonPrefixes` only if you specify a delimiter. /// - /// CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by the delimiter. + /// `CommonPrefixes` contains all (if there are any) keys between `Prefix` and the next occurrence of the string specified by the delimiter. /// - /// CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix. + /// `CommonPrefixes` lists keys that act like subdirectories in the directory specified by `Prefix`. /// - /// For example, if the prefix is notes/ and the delimiter is a slash (/) as in notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns. + /// For example, if the prefix is `notes/` and the delimiter is a slash (`/`), as in `notes/summer/july`, the common prefix is `notes/summer/`. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns. _i7.BuiltList<_i4.CommonPrefix>? get commonPrefixes; /// Metadata about each object returned. @@ -255,7 +257,9 @@ abstract class ListObjectsOutputPayload /// The bucket name. String? get name; - /// When response is truncated (the IsTruncated element value in the response is true), you can use the key name in this field as marker in the subsequent request to get next set of objects. Amazon S3 lists objects in alphabetical order Note: This element is returned only if you have delimiter request parameter specified. If response does not include the NextMarker and it is truncated, you can use the value of the last Key in the response as the marker in the subsequent request to get the next set of object keys. + /// When the response is truncated (the `IsTruncated` element value in the response is `true`), you can use the key name in this field as the `marker` parameter in the subsequent request to get the next set of objects. Amazon S3 lists objects in alphabetical order. + /// + /// This element is returned only if you have the `delimiter` request parameter specified. If the response does not include the `NextMarker` element and it is truncated, you can use the value of the last `Key` element in the response as the `marker` parameter in the subsequent request to get the next set of object keys. String? get nextMarker; /// Keys that begin with the indicated prefix. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_request.dart index 7fa7f294e1..13725053ff 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_request.dart @@ -4,11 +4,14 @@ library smoke_test.s3.model.list_objects_request; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i2; +import 'package:built_collection/built_collection.dart' as _i6; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:meta/meta.dart' as _i5; +import 'package:meta/meta.dart' as _i7; import 'package:smithy/smithy.dart' as _i1; import 'package:smoke_test/src/sdk/src/s3/model/encoding_type.dart' as _i3; +import 'package:smoke_test/src/sdk/src/s3/model/optional_object_attributes.dart' + as _i5; import 'package:smoke_test/src/sdk/src/s3/model/request_payer.dart' as _i4; part 'list_objects_request.g.dart'; @@ -30,6 +33,7 @@ abstract class ListObjectsRequest String? prefix, _i4.RequestPayer? requestPayer, String? expectedBucketOwner, + List<_i5.OptionalObjectAttributes>? optionalObjectAttributes, }) { return _$ListObjectsRequest._( bucket: bucket, @@ -40,6 +44,9 @@ abstract class ListObjectsRequest prefix: prefix, requestPayer: requestPayer, expectedBucketOwner: expectedBucketOwner, + optionalObjectAttributes: optionalObjectAttributes == null + ? null + : _i6.BuiltList(optionalObjectAttributes), ); } @@ -63,6 +70,12 @@ abstract class ListObjectsRequest b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; } + if (request.headers['x-amz-optional-object-attributes'] != null) { + b.optionalObjectAttributes.addAll(_i1 + .parseHeader(request.headers['x-amz-optional-object-attributes']!) + .map((el) => + _i5.OptionalObjectAttributes.values.byValue(el.trim()))); + } if (request.queryParameters['delimiter'] != null) { b.delimiter = request.queryParameters['delimiter']!; } @@ -94,19 +107,19 @@ abstract class ListObjectsRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; - /// A delimiter is a character you use to group keys. + /// A delimiter is a character that you use to group keys. String? get delimiter; - /// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. + /// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key can contain any Unicode character; however, the XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. _i3.EncodingType? get encodingType; /// Marker is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. Marker can be any key in the bucket. String? get marker; - /// Sets the maximum number of keys returned in the response. By default the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. + /// Sets the maximum number of keys returned in the response. By default, the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. int? get maxKeys; /// Limits the response to keys that begin with the specified prefix. @@ -117,6 +130,9 @@ abstract class ListObjectsRequest /// The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code `403 Forbidden` (access denied). String? get expectedBucketOwner; + + /// Specifies the optional fields that you want returned in the response. Fields that you do not specify are not returned. + _i6.BuiltList<_i5.OptionalObjectAttributes>? get optionalObjectAttributes; @override String labelFor(String key) { switch (key) { @@ -141,6 +157,7 @@ abstract class ListObjectsRequest prefix, requestPayer, expectedBucketOwner, + optionalObjectAttributes, ]; @override String toString() { @@ -176,12 +193,16 @@ abstract class ListObjectsRequest ..add( 'expectedBucketOwner', expectedBucketOwner, + ) + ..add( + 'optionalObjectAttributes', + optionalObjectAttributes, ); return helper.toString(); } } -@_i5.internal +@_i7.internal abstract class ListObjectsRequestPayload with _i2.AWSEquatable implements diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_request.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_request.g.dart index 1f4e45365a..2f5bed47cd 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_request.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_request.g.dart @@ -23,6 +23,8 @@ class _$ListObjectsRequest extends ListObjectsRequest { final _i4.RequestPayer? requestPayer; @override final String? expectedBucketOwner; + @override + final _i6.BuiltList<_i5.OptionalObjectAttributes>? optionalObjectAttributes; factory _$ListObjectsRequest( [void Function(ListObjectsRequestBuilder)? updates]) => @@ -36,7 +38,8 @@ class _$ListObjectsRequest extends ListObjectsRequest { this.maxKeys, this.prefix, this.requestPayer, - this.expectedBucketOwner}) + this.expectedBucketOwner, + this.optionalObjectAttributes}) : super._() { BuiltValueNullFieldError.checkNotNull( bucket, r'ListObjectsRequest', 'bucket'); @@ -62,7 +65,8 @@ class _$ListObjectsRequest extends ListObjectsRequest { maxKeys == other.maxKeys && prefix == other.prefix && requestPayer == other.requestPayer && - expectedBucketOwner == other.expectedBucketOwner; + expectedBucketOwner == other.expectedBucketOwner && + optionalObjectAttributes == other.optionalObjectAttributes; } @override @@ -76,6 +80,7 @@ class _$ListObjectsRequest extends ListObjectsRequest { _$hash = $jc(_$hash, prefix.hashCode); _$hash = $jc(_$hash, requestPayer.hashCode); _$hash = $jc(_$hash, expectedBucketOwner.hashCode); + _$hash = $jc(_$hash, optionalObjectAttributes.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -120,6 +125,15 @@ class ListObjectsRequestBuilder set expectedBucketOwner(String? expectedBucketOwner) => _$this._expectedBucketOwner = expectedBucketOwner; + _i6.ListBuilder<_i5.OptionalObjectAttributes>? _optionalObjectAttributes; + _i6.ListBuilder<_i5.OptionalObjectAttributes> get optionalObjectAttributes => + _$this._optionalObjectAttributes ??= + new _i6.ListBuilder<_i5.OptionalObjectAttributes>(); + set optionalObjectAttributes( + _i6.ListBuilder<_i5.OptionalObjectAttributes>? + optionalObjectAttributes) => + _$this._optionalObjectAttributes = optionalObjectAttributes; + ListObjectsRequestBuilder() { ListObjectsRequest._init(this); } @@ -135,6 +149,7 @@ class ListObjectsRequestBuilder _prefix = $v.prefix; _requestPayer = $v.requestPayer; _expectedBucketOwner = $v.expectedBucketOwner; + _optionalObjectAttributes = $v.optionalObjectAttributes?.toBuilder(); _$v = null; } return this; @@ -155,17 +170,31 @@ class ListObjectsRequestBuilder ListObjectsRequest build() => _build(); _$ListObjectsRequest _build() { - final _$result = _$v ?? - new _$ListObjectsRequest._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'ListObjectsRequest', 'bucket'), - delimiter: delimiter, - encodingType: encodingType, - marker: marker, - maxKeys: maxKeys, - prefix: prefix, - requestPayer: requestPayer, - expectedBucketOwner: expectedBucketOwner); + _$ListObjectsRequest _$result; + try { + _$result = _$v ?? + new _$ListObjectsRequest._( + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, r'ListObjectsRequest', 'bucket'), + delimiter: delimiter, + encodingType: encodingType, + marker: marker, + maxKeys: maxKeys, + prefix: prefix, + requestPayer: requestPayer, + expectedBucketOwner: expectedBucketOwner, + optionalObjectAttributes: _optionalObjectAttributes?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'optionalObjectAttributes'; + _optionalObjectAttributes?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ListObjectsRequest', _$failedField, e.toString()); + } + rethrow; + } replace(_$result); return _$result; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_output.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_output.dart index 359f458983..787ae30083 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_output.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_output.dart @@ -94,7 +94,7 @@ abstract class ListObjectsV2Output @BuiltValueHook(initializeBuilder: true) static void _init(ListObjectsV2OutputBuilder b) {} - /// Set to false if all of the results were returned. Set to true if more keys are available to return. If the number of results exceeds that specified by MaxKeys, all of the results might not be returned. + /// Set to `false` if all of the results were returned. Set to `true` if more keys are available to return. If the number of results exceeds that specified by `MaxKeys`, all of the results might not be returned. bool? get isTruncated; /// Metadata about each object returned. @@ -104,16 +104,16 @@ abstract class ListObjectsV2Output /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get name; /// Keys that begin with the indicated prefix. String? get prefix; - /// Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the `MaxKeys` value. + /// Causes keys that contain the same string between the `prefix` and the first occurrence of the delimiter to be rolled up into a single result element in the `CommonPrefixes` collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the `MaxKeys` value. String? get delimiter; - /// Sets the maximum number of keys returned in the response. By default the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. + /// Sets the maximum number of keys returned in the response. By default, the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. int? get maxKeys; /// All of the keys (up to 1,000) rolled up into a common prefix count as a single return when calculating the number of returns. @@ -129,15 +129,15 @@ abstract class ListObjectsV2Output /// Encoding type used by Amazon S3 to encode object key names in the XML response. /// - /// If you specify the encoding-type request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: + /// If you specify the `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: /// /// `Delimiter, Prefix, Key,` and `StartAfter`. _i5.EncodingType? get encodingType; - /// KeyCount is the number of keys returned with this request. KeyCount will always be less than or equal to the `MaxKeys` field. Say you ask for 50 keys, your result will include 50 keys or fewer. + /// `KeyCount` is the number of keys returned with this request. `KeyCount` will always be less than or equal to the `MaxKeys` field. For example, if you ask for 50 keys, your result will include 50 keys or fewer. int? get keyCount; - /// If ContinuationToken was sent with the request, it is included in the response. + /// If `ContinuationToken` was sent with the request, it is included in the response. String? get continuationToken; /// `NextContinuationToken` is sent when `isTruncated` is true, which means there are more keys in the bucket that can be listed. The next list requests to Amazon S3 can be continued with this `NextContinuationToken`. `NextContinuationToken` is obfuscated and is not a real key @@ -270,33 +270,33 @@ abstract class ListObjectsV2OutputPayload /// Metadata about each object returned. _i7.BuiltList<_i3.S3Object>? get contents; - /// If ContinuationToken was sent with the request, it is included in the response. + /// If `ContinuationToken` was sent with the request, it is included in the response. String? get continuationToken; - /// Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the `MaxKeys` value. + /// Causes keys that contain the same string between the `prefix` and the first occurrence of the delimiter to be rolled up into a single result element in the `CommonPrefixes` collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the `MaxKeys` value. String? get delimiter; /// Encoding type used by Amazon S3 to encode object key names in the XML response. /// - /// If you specify the encoding-type request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: + /// If you specify the `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: /// /// `Delimiter, Prefix, Key,` and `StartAfter`. _i5.EncodingType? get encodingType; - /// Set to false if all of the results were returned. Set to true if more keys are available to return. If the number of results exceeds that specified by MaxKeys, all of the results might not be returned. + /// Set to `false` if all of the results were returned. Set to `true` if more keys are available to return. If the number of results exceeds that specified by `MaxKeys`, all of the results might not be returned. bool? get isTruncated; - /// KeyCount is the number of keys returned with this request. KeyCount will always be less than or equal to the `MaxKeys` field. Say you ask for 50 keys, your result will include 50 keys or fewer. + /// `KeyCount` is the number of keys returned with this request. `KeyCount` will always be less than or equal to the `MaxKeys` field. For example, if you ask for 50 keys, your result will include 50 keys or fewer. int? get keyCount; - /// Sets the maximum number of keys returned in the response. By default the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. + /// Sets the maximum number of keys returned in the response. By default, the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. int? get maxKeys; /// The bucket name. /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get name; /// `NextContinuationToken` is sent when `isTruncated` is true, which means there are more keys in the bucket that can be listed. The next list requests to Amazon S3 can be continued with this `NextContinuationToken`. `NextContinuationToken` is obfuscated and is not a real key diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_request.dart index 148ef84fc7..40b6d18076 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_request.dart @@ -4,11 +4,14 @@ library smoke_test.s3.model.list_objects_v2_request; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i2; +import 'package:built_collection/built_collection.dart' as _i6; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:meta/meta.dart' as _i5; +import 'package:meta/meta.dart' as _i7; import 'package:smithy/smithy.dart' as _i1; import 'package:smoke_test/src/sdk/src/s3/model/encoding_type.dart' as _i3; +import 'package:smoke_test/src/sdk/src/s3/model/optional_object_attributes.dart' + as _i5; import 'package:smoke_test/src/sdk/src/s3/model/request_payer.dart' as _i4; part 'list_objects_v2_request.g.dart'; @@ -32,6 +35,7 @@ abstract class ListObjectsV2Request String? startAfter, _i4.RequestPayer? requestPayer, String? expectedBucketOwner, + List<_i5.OptionalObjectAttributes>? optionalObjectAttributes, }) { return _$ListObjectsV2Request._( bucket: bucket, @@ -44,6 +48,9 @@ abstract class ListObjectsV2Request startAfter: startAfter, requestPayer: requestPayer, expectedBucketOwner: expectedBucketOwner, + optionalObjectAttributes: optionalObjectAttributes == null + ? null + : _i6.BuiltList(optionalObjectAttributes), ); } @@ -67,6 +74,12 @@ abstract class ListObjectsV2Request b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; } + if (request.headers['x-amz-optional-object-attributes'] != null) { + b.optionalObjectAttributes.addAll(_i1 + .parseHeader(request.headers['x-amz-optional-object-attributes']!) + .map((el) => + _i5.OptionalObjectAttributes.values.byValue(el.trim()))); + } if (request.queryParameters['delimiter'] != null) { b.delimiter = request.queryParameters['delimiter']!; } @@ -104,25 +117,25 @@ abstract class ListObjectsV2Request /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; - /// A delimiter is a character you use to group keys. + /// A delimiter is a character that you use to group keys. String? get delimiter; /// Encoding type used by Amazon S3 to encode object keys in the response. _i3.EncodingType? get encodingType; - /// Sets the maximum number of keys returned in the response. By default the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. + /// Sets the maximum number of keys returned in the response. By default, the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. int? get maxKeys; /// Limits the response to keys that begin with the specified prefix. String? get prefix; - /// ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key. + /// `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. String? get continuationToken; - /// The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true. + /// 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`. bool? get fetchOwner; /// StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucket. @@ -133,6 +146,9 @@ abstract class ListObjectsV2Request /// The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code `403 Forbidden` (access denied). String? get expectedBucketOwner; + + /// Specifies the optional fields that you want returned in the response. Fields that you do not specify are not returned. + _i6.BuiltList<_i5.OptionalObjectAttributes>? get optionalObjectAttributes; @override String labelFor(String key) { switch (key) { @@ -159,6 +175,7 @@ abstract class ListObjectsV2Request startAfter, requestPayer, expectedBucketOwner, + optionalObjectAttributes, ]; @override String toString() { @@ -202,12 +219,16 @@ abstract class ListObjectsV2Request ..add( 'expectedBucketOwner', expectedBucketOwner, + ) + ..add( + 'optionalObjectAttributes', + optionalObjectAttributes, ); return helper.toString(); } } -@_i5.internal +@_i7.internal abstract class ListObjectsV2RequestPayload with _i2.AWSEquatable implements diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart index 28f4bf3c0a..0e1e3033bf 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart @@ -27,6 +27,8 @@ class _$ListObjectsV2Request extends ListObjectsV2Request { final _i4.RequestPayer? requestPayer; @override final String? expectedBucketOwner; + @override + final _i6.BuiltList<_i5.OptionalObjectAttributes>? optionalObjectAttributes; factory _$ListObjectsV2Request( [void Function(ListObjectsV2RequestBuilder)? updates]) => @@ -42,7 +44,8 @@ class _$ListObjectsV2Request extends ListObjectsV2Request { this.fetchOwner, this.startAfter, this.requestPayer, - this.expectedBucketOwner}) + this.expectedBucketOwner, + this.optionalObjectAttributes}) : super._() { BuiltValueNullFieldError.checkNotNull( bucket, r'ListObjectsV2Request', 'bucket'); @@ -70,7 +73,8 @@ class _$ListObjectsV2Request extends ListObjectsV2Request { fetchOwner == other.fetchOwner && startAfter == other.startAfter && requestPayer == other.requestPayer && - expectedBucketOwner == other.expectedBucketOwner; + expectedBucketOwner == other.expectedBucketOwner && + optionalObjectAttributes == other.optionalObjectAttributes; } @override @@ -86,6 +90,7 @@ class _$ListObjectsV2Request extends ListObjectsV2Request { _$hash = $jc(_$hash, startAfter.hashCode); _$hash = $jc(_$hash, requestPayer.hashCode); _$hash = $jc(_$hash, expectedBucketOwner.hashCode); + _$hash = $jc(_$hash, optionalObjectAttributes.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -139,6 +144,15 @@ class ListObjectsV2RequestBuilder set expectedBucketOwner(String? expectedBucketOwner) => _$this._expectedBucketOwner = expectedBucketOwner; + _i6.ListBuilder<_i5.OptionalObjectAttributes>? _optionalObjectAttributes; + _i6.ListBuilder<_i5.OptionalObjectAttributes> get optionalObjectAttributes => + _$this._optionalObjectAttributes ??= + new _i6.ListBuilder<_i5.OptionalObjectAttributes>(); + set optionalObjectAttributes( + _i6.ListBuilder<_i5.OptionalObjectAttributes>? + optionalObjectAttributes) => + _$this._optionalObjectAttributes = optionalObjectAttributes; + ListObjectsV2RequestBuilder() { ListObjectsV2Request._init(this); } @@ -156,6 +170,7 @@ class ListObjectsV2RequestBuilder _startAfter = $v.startAfter; _requestPayer = $v.requestPayer; _expectedBucketOwner = $v.expectedBucketOwner; + _optionalObjectAttributes = $v.optionalObjectAttributes?.toBuilder(); _$v = null; } return this; @@ -176,19 +191,33 @@ class ListObjectsV2RequestBuilder ListObjectsV2Request build() => _build(); _$ListObjectsV2Request _build() { - final _$result = _$v ?? - new _$ListObjectsV2Request._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'ListObjectsV2Request', 'bucket'), - delimiter: delimiter, - encodingType: encodingType, - maxKeys: maxKeys, - prefix: prefix, - continuationToken: continuationToken, - fetchOwner: fetchOwner, - startAfter: startAfter, - requestPayer: requestPayer, - expectedBucketOwner: expectedBucketOwner); + _$ListObjectsV2Request _$result; + try { + _$result = _$v ?? + new _$ListObjectsV2Request._( + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, r'ListObjectsV2Request', 'bucket'), + delimiter: delimiter, + encodingType: encodingType, + maxKeys: maxKeys, + prefix: prefix, + continuationToken: continuationToken, + fetchOwner: fetchOwner, + startAfter: startAfter, + requestPayer: requestPayer, + expectedBucketOwner: expectedBucketOwner, + optionalObjectAttributes: _optionalObjectAttributes?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'optionalObjectAttributes'; + _optionalObjectAttributes?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ListObjectsV2Request', _$failedField, e.toString()); + } + rethrow; + } replace(_$result); return _$result; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_parts_output.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_parts_output.dart index 535da809fb..2c864da2c9 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_parts_output.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_parts_output.dart @@ -129,7 +129,7 @@ abstract class ListPartsOutput /// When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request. String? get partNumberMarker; - /// When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request. + /// When a list is truncated, this element specifies the last part in the list, as well as the value to use for the `part-number-marker` request parameter in a subsequent request. String? get nextPartNumberMarker; /// Maximum number of parts that were allowed in the response. @@ -292,7 +292,7 @@ abstract class ListPartsOutputPayload /// Maximum number of parts that were allowed in the response. int? get maxParts; - /// When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request. + /// When a list is truncated, this element specifies the last part in the list, as well as the value to use for the `part-number-marker` request parameter in a subsequent request. String? get nextPartNumberMarker; /// Container element that identifies the object owner, after the object is created. If multipart upload is initiated by an IAM user, this element provides the parent account ID and display name. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_parts_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_parts_request.dart index e7c5c89838..2cb50dbcf6 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_parts_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/list_parts_request.dart @@ -108,7 +108,7 @@ abstract class ListPartsRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Object key for which the multipart upload was initiated. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/metadata_entry.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/metadata_entry.dart index 2034b0a76f..195f10c7a0 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/metadata_entry.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/metadata_entry.dart @@ -38,10 +38,10 @@ abstract class MetadataEntry @BuiltValueHook(initializeBuilder: true) static void _init(MetadataEntryBuilder b) {} - /// Name of the Object. + /// Name of the object. String? get name; - /// Value of the Object. + /// Value of the object. String? get value; @override List get props => [ diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/metrics_filter.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/metrics_filter.dart index 01c20bbb15..874d068948 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/metrics_filter.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/metrics_filter.dart @@ -14,26 +14,26 @@ import 'package:smoke_test/src/sdk/src/s3/model/tag.dart' as _i2; sealed class MetricsFilter extends _i1.SmithyUnion { const MetricsFilter._(); - const factory MetricsFilter.prefix(String prefix) = MetricsFilterPrefix; + const factory MetricsFilter.prefix(String prefix) = MetricsFilterPrefix$; factory MetricsFilter.tag({ required String key, required String value, }) => - MetricsFilterTag(_i2.Tag( + MetricsFilterTag$(_i2.Tag( key: key, value: value, )); const factory MetricsFilter.accessPointArn(String accessPointArn) = - MetricsFilterAccessPointArn; + MetricsFilterAccessPointArn$; factory MetricsFilter.and({ String? prefix, List<_i2.Tag>? tags, String? accessPointArn, }) => - MetricsFilterAnd(_i3.MetricsAndOperator( + MetricsFilterAnd$(_i3.MetricsAndOperator( prefix: prefix, tags: tags, accessPointArn: accessPointArn, @@ -42,7 +42,7 @@ sealed class MetricsFilter extends _i1.SmithyUnion { const factory MetricsFilter.sdkUnknown( String name, Object value, - ) = MetricsFilterSdkUnknown; + ) = MetricsFilterSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ MetricsFilterRestXmlSerializer() @@ -92,8 +92,8 @@ sealed class MetricsFilter extends _i1.SmithyUnion { } } -final class MetricsFilterPrefix extends MetricsFilter { - const MetricsFilterPrefix(this.prefix) : super._(); +final class MetricsFilterPrefix$ extends MetricsFilter { + const MetricsFilterPrefix$(this.prefix) : super._(); @override final String prefix; @@ -102,8 +102,8 @@ final class MetricsFilterPrefix extends MetricsFilter { String get name => 'Prefix'; } -final class MetricsFilterTag extends MetricsFilter { - const MetricsFilterTag(this.tag) : super._(); +final class MetricsFilterTag$ extends MetricsFilter { + const MetricsFilterTag$(this.tag) : super._(); @override final _i2.Tag tag; @@ -112,8 +112,8 @@ final class MetricsFilterTag extends MetricsFilter { String get name => 'Tag'; } -final class MetricsFilterAccessPointArn extends MetricsFilter { - const MetricsFilterAccessPointArn(this.accessPointArn) : super._(); +final class MetricsFilterAccessPointArn$ extends MetricsFilter { + const MetricsFilterAccessPointArn$(this.accessPointArn) : super._(); @override final String accessPointArn; @@ -122,8 +122,8 @@ final class MetricsFilterAccessPointArn extends MetricsFilter { String get name => 'AccessPointArn'; } -final class MetricsFilterAnd extends MetricsFilter { - const MetricsFilterAnd(this.and) : super._(); +final class MetricsFilterAnd$ extends MetricsFilter { + const MetricsFilterAnd$(this.and) : super._(); @override final _i3.MetricsAndOperator and; @@ -132,8 +132,8 @@ final class MetricsFilterAnd extends MetricsFilter { String get name => 'And'; } -final class MetricsFilterSdkUnknown extends MetricsFilter { - const MetricsFilterSdkUnknown( +final class MetricsFilterSdkUnknown$ extends MetricsFilter { + const MetricsFilterSdkUnknown$( this.name, this.value, ) : super._(); @@ -152,10 +152,10 @@ class MetricsFilterRestXmlSerializer @override Iterable get types => const [ MetricsFilter, - MetricsFilterPrefix, - MetricsFilterTag, - MetricsFilterAccessPointArn, - MetricsFilterAnd, + MetricsFilterPrefix$, + MetricsFilterTag$, + MetricsFilterAccessPointArn$, + MetricsFilterAnd$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -173,22 +173,22 @@ class MetricsFilterRestXmlSerializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'Prefix': - return MetricsFilterPrefix((serializers.deserialize( + return MetricsFilterPrefix$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'Tag': - return MetricsFilterTag((serializers.deserialize( + return MetricsFilterTag$((serializers.deserialize( value, specifiedType: const FullType(_i2.Tag), ) as _i2.Tag)); case 'AccessPointArn': - return MetricsFilterAccessPointArn((serializers.deserialize( + return MetricsFilterAccessPointArn$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'And': - return MetricsFilterAnd((serializers.deserialize( + return MetricsFilterAnd$((serializers.deserialize( value, specifiedType: const FullType(_i3.MetricsAndOperator), ) as _i3.MetricsAndOperator)); @@ -208,23 +208,23 @@ class MetricsFilterRestXmlSerializer return [ object.name, switch (object) { - MetricsFilterPrefix(:final value) => serializers.serialize( + MetricsFilterPrefix$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - MetricsFilterTag(:final value) => serializers.serialize( + MetricsFilterTag$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Tag), ), - MetricsFilterAccessPointArn(:final value) => serializers.serialize( + MetricsFilterAccessPointArn$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - MetricsFilterAnd(:final value) => serializers.serialize( + MetricsFilterAnd$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.MetricsAndOperator), ), - MetricsFilterSdkUnknown(:final value) => value, + MetricsFilterSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object.dart index 985244a806..7d8319fa22 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object.dart @@ -4,15 +4,16 @@ library smoke_test.s3.model.object; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i1; -import 'package:built_collection/built_collection.dart' as _i6; +import 'package:built_collection/built_collection.dart' as _i7; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:fixnum/fixnum.dart' as _i3; -import 'package:smithy/smithy.dart' as _i7; +import 'package:smithy/smithy.dart' as _i8; import 'package:smoke_test/src/sdk/src/s3/model/checksum_algorithm.dart' as _i2; import 'package:smoke_test/src/sdk/src/s3/model/object_storage_class.dart' as _i4; import 'package:smoke_test/src/sdk/src/s3/model/owner.dart' as _i5; +import 'package:smoke_test/src/sdk/src/s3/model/restore_status.dart' as _i6; part 'object.g.dart'; @@ -29,16 +30,18 @@ abstract class S3Object _i3.Int64? size, _i4.ObjectStorageClass? storageClass, _i5.Owner? owner, + _i6.RestoreStatus? restoreStatus, }) { return _$S3Object._( key: key, lastModified: lastModified, eTag: eTag, checksumAlgorithm: - checksumAlgorithm == null ? null : _i6.BuiltList(checksumAlgorithm), + checksumAlgorithm == null ? null : _i7.BuiltList(checksumAlgorithm), size: size, storageClass: storageClass, owner: owner, + restoreStatus: restoreStatus, ); } @@ -47,7 +50,7 @@ abstract class S3Object const S3Object._(); - static const List<_i7.SmithySerializer> serializers = [ + static const List<_i8.SmithySerializer> serializers = [ ObjectRestXmlSerializer() ]; @@ -70,7 +73,7 @@ abstract class S3Object String? get eTag; /// The algorithm that was used to create a checksum of the object. - _i6.BuiltList<_i2.ChecksumAlgorithm>? get checksumAlgorithm; + _i7.BuiltList<_i2.ChecksumAlgorithm>? get checksumAlgorithm; /// Size in bytes of the object _i3.Int64? get size; @@ -80,6 +83,9 @@ abstract class S3Object /// The owner of the object _i5.Owner? get owner; + + /// Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see [Working with archived objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/archived-objects.html) in the _Amazon S3 User Guide_. + _i6.RestoreStatus? get restoreStatus; @override List get props => [ key, @@ -89,6 +95,7 @@ abstract class S3Object size, storageClass, owner, + restoreStatus, ]; @override String toString() { @@ -120,12 +127,16 @@ abstract class S3Object ..add( 'owner', owner, + ) + ..add( + 'restoreStatus', + restoreStatus, ); return helper.toString(); } } -class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { +class ObjectRestXmlSerializer extends _i8.StructuredSmithySerializer { const ObjectRestXmlSerializer() : super('Object'); @override @@ -134,8 +145,8 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { _$S3Object, ]; @override - Iterable<_i7.ShapeId> get supportedProtocols => const [ - _i7.ShapeId( + Iterable<_i8.ShapeId> get supportedProtocols => const [ + _i8.ShapeId( namespace: 'aws.protocols', shape: 'restXml', ) @@ -181,6 +192,11 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { value, specifiedType: const FullType(_i5.Owner), ) as _i5.Owner)); + case 'RestoreStatus': + result.restoreStatus.replace((serializers.deserialize( + value, + specifiedType: const FullType(_i6.RestoreStatus), + ) as _i6.RestoreStatus)); case 'Size': result.size = (serializers.deserialize( value, @@ -204,9 +220,9 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i7.XmlElementName( + const _i8.XmlElementName( 'Object', - _i7.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), + _i8.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), ) ]; final S3Object( @@ -215,24 +231,25 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { :key, :lastModified, :owner, + :restoreStatus, :size, :storageClass ) = object; if (checksumAlgorithm != null) { result$.addAll( - const _i7.XmlBuiltListSerializer(memberName: 'ChecksumAlgorithm') + const _i8.XmlBuiltListSerializer(memberName: 'ChecksumAlgorithm') .serialize( serializers, checksumAlgorithm, specifiedType: const FullType.nullable( - _i6.BuiltList, + _i7.BuiltList, [FullType(_i2.ChecksumAlgorithm)], ), )); } if (eTag != null) { result$ - ..add(const _i7.XmlElementName('ETag')) + ..add(const _i8.XmlElementName('ETag')) ..add(serializers.serialize( eTag, specifiedType: const FullType(String), @@ -240,7 +257,7 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { } if (key != null) { result$ - ..add(const _i7.XmlElementName('Key')) + ..add(const _i8.XmlElementName('Key')) ..add(serializers.serialize( key, specifiedType: const FullType(String), @@ -248,7 +265,7 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { } if (lastModified != null) { result$ - ..add(const _i7.XmlElementName('LastModified')) + ..add(const _i8.XmlElementName('LastModified')) ..add(serializers.serialize( lastModified, specifiedType: const FullType.nullable(DateTime), @@ -256,15 +273,23 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { } if (owner != null) { result$ - ..add(const _i7.XmlElementName('Owner')) + ..add(const _i8.XmlElementName('Owner')) ..add(serializers.serialize( owner, specifiedType: const FullType(_i5.Owner), )); } + if (restoreStatus != null) { + result$ + ..add(const _i8.XmlElementName('RestoreStatus')) + ..add(serializers.serialize( + restoreStatus, + specifiedType: const FullType(_i6.RestoreStatus), + )); + } if (size != null) { result$ - ..add(const _i7.XmlElementName('Size')) + ..add(const _i8.XmlElementName('Size')) ..add(serializers.serialize( size, specifiedType: const FullType.nullable(_i3.Int64), @@ -272,7 +297,7 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { } if (storageClass != null) { result$ - ..add(const _i7.XmlElementName('StorageClass')) + ..add(const _i8.XmlElementName('StorageClass')) ..add(serializers.serialize( storageClass, specifiedType: const FullType.nullable(_i4.ObjectStorageClass), diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object.g.dart index 771d6ac52f..ccbdf65195 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object.g.dart @@ -14,13 +14,15 @@ class _$S3Object extends S3Object { @override final String? eTag; @override - final _i6.BuiltList<_i2.ChecksumAlgorithm>? checksumAlgorithm; + final _i7.BuiltList<_i2.ChecksumAlgorithm>? checksumAlgorithm; @override final _i3.Int64? size; @override final _i4.ObjectStorageClass? storageClass; @override final _i5.Owner? owner; + @override + final _i6.RestoreStatus? restoreStatus; factory _$S3Object([void Function(S3ObjectBuilder)? updates]) => (new S3ObjectBuilder()..update(updates))._build(); @@ -32,7 +34,8 @@ class _$S3Object extends S3Object { this.checksumAlgorithm, this.size, this.storageClass, - this.owner}) + this.owner, + this.restoreStatus}) : super._(); @override @@ -52,7 +55,8 @@ class _$S3Object extends S3Object { checksumAlgorithm == other.checksumAlgorithm && size == other.size && storageClass == other.storageClass && - owner == other.owner; + owner == other.owner && + restoreStatus == other.restoreStatus; } @override @@ -65,6 +69,7 @@ class _$S3Object extends S3Object { _$hash = $jc(_$hash, size.hashCode); _$hash = $jc(_$hash, storageClass.hashCode); _$hash = $jc(_$hash, owner.hashCode); + _$hash = $jc(_$hash, restoreStatus.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -86,12 +91,12 @@ class S3ObjectBuilder implements Builder { String? get eTag => _$this._eTag; set eTag(String? eTag) => _$this._eTag = eTag; - _i6.ListBuilder<_i2.ChecksumAlgorithm>? _checksumAlgorithm; - _i6.ListBuilder<_i2.ChecksumAlgorithm> get checksumAlgorithm => + _i7.ListBuilder<_i2.ChecksumAlgorithm>? _checksumAlgorithm; + _i7.ListBuilder<_i2.ChecksumAlgorithm> get checksumAlgorithm => _$this._checksumAlgorithm ??= - new _i6.ListBuilder<_i2.ChecksumAlgorithm>(); + new _i7.ListBuilder<_i2.ChecksumAlgorithm>(); set checksumAlgorithm( - _i6.ListBuilder<_i2.ChecksumAlgorithm>? checksumAlgorithm) => + _i7.ListBuilder<_i2.ChecksumAlgorithm>? checksumAlgorithm) => _$this._checksumAlgorithm = checksumAlgorithm; _i3.Int64? _size; @@ -107,6 +112,12 @@ class S3ObjectBuilder implements Builder { _i5.OwnerBuilder get owner => _$this._owner ??= new _i5.OwnerBuilder(); set owner(_i5.OwnerBuilder? owner) => _$this._owner = owner; + _i6.RestoreStatusBuilder? _restoreStatus; + _i6.RestoreStatusBuilder get restoreStatus => + _$this._restoreStatus ??= new _i6.RestoreStatusBuilder(); + set restoreStatus(_i6.RestoreStatusBuilder? restoreStatus) => + _$this._restoreStatus = restoreStatus; + S3ObjectBuilder() { S3Object._init(this); } @@ -121,6 +132,7 @@ class S3ObjectBuilder implements Builder { _size = $v.size; _storageClass = $v.storageClass; _owner = $v.owner?.toBuilder(); + _restoreStatus = $v.restoreStatus?.toBuilder(); _$v = null; } return this; @@ -151,7 +163,8 @@ class S3ObjectBuilder implements Builder { checksumAlgorithm: _checksumAlgorithm?.build(), size: size, storageClass: storageClass, - owner: _owner?.build()); + owner: _owner?.build(), + restoreStatus: _restoreStatus?.build()); } catch (_) { late String _$failedField; try { @@ -160,6 +173,8 @@ class S3ObjectBuilder implements Builder { _$failedField = 'owner'; _owner?.build(); + _$failedField = 'restoreStatus'; + _restoreStatus?.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'S3Object', _$failedField, e.toString()); diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object_version.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object_version.dart index ad43b26664..6f49fe8df7 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object_version.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object_version.dart @@ -4,15 +4,16 @@ library smoke_test.s3.model.object_version; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:aws_common/aws_common.dart' as _i1; -import 'package:built_collection/built_collection.dart' as _i6; +import 'package:built_collection/built_collection.dart' as _i7; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:fixnum/fixnum.dart' as _i3; -import 'package:smithy/smithy.dart' as _i7; +import 'package:smithy/smithy.dart' as _i8; import 'package:smoke_test/src/sdk/src/s3/model/checksum_algorithm.dart' as _i2; import 'package:smoke_test/src/sdk/src/s3/model/object_version_storage_class.dart' as _i4; import 'package:smoke_test/src/sdk/src/s3/model/owner.dart' as _i5; +import 'package:smoke_test/src/sdk/src/s3/model/restore_status.dart' as _i6; part 'object_version.g.dart'; @@ -31,11 +32,12 @@ abstract class ObjectVersion bool? isLatest, DateTime? lastModified, _i5.Owner? owner, + _i6.RestoreStatus? restoreStatus, }) { return _$ObjectVersion._( eTag: eTag, checksumAlgorithm: - checksumAlgorithm == null ? null : _i6.BuiltList(checksumAlgorithm), + checksumAlgorithm == null ? null : _i7.BuiltList(checksumAlgorithm), size: size, storageClass: storageClass, key: key, @@ -43,6 +45,7 @@ abstract class ObjectVersion isLatest: isLatest, lastModified: lastModified, owner: owner, + restoreStatus: restoreStatus, ); } @@ -52,7 +55,7 @@ abstract class ObjectVersion const ObjectVersion._(); - static const List<_i7.SmithySerializer> serializers = [ + static const List<_i8.SmithySerializer> serializers = [ ObjectVersionRestXmlSerializer() ]; @@ -63,7 +66,7 @@ abstract class ObjectVersion String? get eTag; /// The algorithm that was used to create a checksum of the object. - _i6.BuiltList<_i2.ChecksumAlgorithm>? get checksumAlgorithm; + _i7.BuiltList<_i2.ChecksumAlgorithm>? get checksumAlgorithm; /// Size in bytes of the object. _i3.Int64? get size; @@ -85,6 +88,9 @@ abstract class ObjectVersion /// Specifies the owner of the object. _i5.Owner? get owner; + + /// Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see [Working with archived objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/archived-objects.html) in the _Amazon S3 User Guide_. + _i6.RestoreStatus? get restoreStatus; @override List get props => [ eTag, @@ -96,6 +102,7 @@ abstract class ObjectVersion isLatest, lastModified, owner, + restoreStatus, ]; @override String toString() { @@ -135,13 +142,17 @@ abstract class ObjectVersion ..add( 'owner', owner, + ) + ..add( + 'restoreStatus', + restoreStatus, ); return helper.toString(); } } class ObjectVersionRestXmlSerializer - extends _i7.StructuredSmithySerializer { + extends _i8.StructuredSmithySerializer { const ObjectVersionRestXmlSerializer() : super('ObjectVersion'); @override @@ -150,8 +161,8 @@ class ObjectVersionRestXmlSerializer _$ObjectVersion, ]; @override - Iterable<_i7.ShapeId> get supportedProtocols => const [ - _i7.ShapeId( + Iterable<_i8.ShapeId> get supportedProtocols => const [ + _i8.ShapeId( namespace: 'aws.protocols', shape: 'restXml', ) @@ -202,6 +213,11 @@ class ObjectVersionRestXmlSerializer value, specifiedType: const FullType(_i5.Owner), ) as _i5.Owner)); + case 'RestoreStatus': + result.restoreStatus.replace((serializers.deserialize( + value, + specifiedType: const FullType(_i6.RestoreStatus), + ) as _i6.RestoreStatus)); case 'Size': result.size = (serializers.deserialize( value, @@ -230,9 +246,9 @@ class ObjectVersionRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i7.XmlElementName( + const _i8.XmlElementName( 'ObjectVersion', - _i7.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), + _i8.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), ) ]; final ObjectVersion( @@ -242,25 +258,26 @@ class ObjectVersionRestXmlSerializer :key, :lastModified, :owner, + :restoreStatus, :size, :storageClass, :versionId ) = object; if (checksumAlgorithm != null) { result$.addAll( - const _i7.XmlBuiltListSerializer(memberName: 'ChecksumAlgorithm') + const _i8.XmlBuiltListSerializer(memberName: 'ChecksumAlgorithm') .serialize( serializers, checksumAlgorithm, specifiedType: const FullType.nullable( - _i6.BuiltList, + _i7.BuiltList, [FullType(_i2.ChecksumAlgorithm)], ), )); } if (eTag != null) { result$ - ..add(const _i7.XmlElementName('ETag')) + ..add(const _i8.XmlElementName('ETag')) ..add(serializers.serialize( eTag, specifiedType: const FullType(String), @@ -268,7 +285,7 @@ class ObjectVersionRestXmlSerializer } if (isLatest != null) { result$ - ..add(const _i7.XmlElementName('IsLatest')) + ..add(const _i8.XmlElementName('IsLatest')) ..add(serializers.serialize( isLatest, specifiedType: const FullType.nullable(bool), @@ -276,7 +293,7 @@ class ObjectVersionRestXmlSerializer } if (key != null) { result$ - ..add(const _i7.XmlElementName('Key')) + ..add(const _i8.XmlElementName('Key')) ..add(serializers.serialize( key, specifiedType: const FullType(String), @@ -284,7 +301,7 @@ class ObjectVersionRestXmlSerializer } if (lastModified != null) { result$ - ..add(const _i7.XmlElementName('LastModified')) + ..add(const _i8.XmlElementName('LastModified')) ..add(serializers.serialize( lastModified, specifiedType: const FullType.nullable(DateTime), @@ -292,15 +309,23 @@ class ObjectVersionRestXmlSerializer } if (owner != null) { result$ - ..add(const _i7.XmlElementName('Owner')) + ..add(const _i8.XmlElementName('Owner')) ..add(serializers.serialize( owner, specifiedType: const FullType(_i5.Owner), )); } + if (restoreStatus != null) { + result$ + ..add(const _i8.XmlElementName('RestoreStatus')) + ..add(serializers.serialize( + restoreStatus, + specifiedType: const FullType(_i6.RestoreStatus), + )); + } if (size != null) { result$ - ..add(const _i7.XmlElementName('Size')) + ..add(const _i8.XmlElementName('Size')) ..add(serializers.serialize( size, specifiedType: const FullType.nullable(_i3.Int64), @@ -308,7 +333,7 @@ class ObjectVersionRestXmlSerializer } if (storageClass != null) { result$ - ..add(const _i7.XmlElementName('StorageClass')) + ..add(const _i8.XmlElementName('StorageClass')) ..add(serializers.serialize( storageClass, specifiedType: const FullType.nullable(_i4.ObjectVersionStorageClass), @@ -316,7 +341,7 @@ class ObjectVersionRestXmlSerializer } if (versionId != null) { result$ - ..add(const _i7.XmlElementName('VersionId')) + ..add(const _i8.XmlElementName('VersionId')) ..add(serializers.serialize( versionId, specifiedType: const FullType(String), diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object_version.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object_version.g.dart index 45c357d113..f93a4bc06f 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object_version.g.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/object_version.g.dart @@ -10,7 +10,7 @@ class _$ObjectVersion extends ObjectVersion { @override final String? eTag; @override - final _i6.BuiltList<_i2.ChecksumAlgorithm>? checksumAlgorithm; + final _i7.BuiltList<_i2.ChecksumAlgorithm>? checksumAlgorithm; @override final _i3.Int64? size; @override @@ -25,6 +25,8 @@ class _$ObjectVersion extends ObjectVersion { final DateTime? lastModified; @override final _i5.Owner? owner; + @override + final _i6.RestoreStatus? restoreStatus; factory _$ObjectVersion([void Function(ObjectVersionBuilder)? updates]) => (new ObjectVersionBuilder()..update(updates))._build(); @@ -38,7 +40,8 @@ class _$ObjectVersion extends ObjectVersion { this.versionId, this.isLatest, this.lastModified, - this.owner}) + this.owner, + this.restoreStatus}) : super._(); @override @@ -60,7 +63,8 @@ class _$ObjectVersion extends ObjectVersion { versionId == other.versionId && isLatest == other.isLatest && lastModified == other.lastModified && - owner == other.owner; + owner == other.owner && + restoreStatus == other.restoreStatus; } @override @@ -75,6 +79,7 @@ class _$ObjectVersion extends ObjectVersion { _$hash = $jc(_$hash, isLatest.hashCode); _$hash = $jc(_$hash, lastModified.hashCode); _$hash = $jc(_$hash, owner.hashCode); + _$hash = $jc(_$hash, restoreStatus.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -88,12 +93,12 @@ class ObjectVersionBuilder String? get eTag => _$this._eTag; set eTag(String? eTag) => _$this._eTag = eTag; - _i6.ListBuilder<_i2.ChecksumAlgorithm>? _checksumAlgorithm; - _i6.ListBuilder<_i2.ChecksumAlgorithm> get checksumAlgorithm => + _i7.ListBuilder<_i2.ChecksumAlgorithm>? _checksumAlgorithm; + _i7.ListBuilder<_i2.ChecksumAlgorithm> get checksumAlgorithm => _$this._checksumAlgorithm ??= - new _i6.ListBuilder<_i2.ChecksumAlgorithm>(); + new _i7.ListBuilder<_i2.ChecksumAlgorithm>(); set checksumAlgorithm( - _i6.ListBuilder<_i2.ChecksumAlgorithm>? checksumAlgorithm) => + _i7.ListBuilder<_i2.ChecksumAlgorithm>? checksumAlgorithm) => _$this._checksumAlgorithm = checksumAlgorithm; _i3.Int64? _size; @@ -126,6 +131,12 @@ class ObjectVersionBuilder _i5.OwnerBuilder get owner => _$this._owner ??= new _i5.OwnerBuilder(); set owner(_i5.OwnerBuilder? owner) => _$this._owner = owner; + _i6.RestoreStatusBuilder? _restoreStatus; + _i6.RestoreStatusBuilder get restoreStatus => + _$this._restoreStatus ??= new _i6.RestoreStatusBuilder(); + set restoreStatus(_i6.RestoreStatusBuilder? restoreStatus) => + _$this._restoreStatus = restoreStatus; + ObjectVersionBuilder() { ObjectVersion._init(this); } @@ -142,6 +153,7 @@ class ObjectVersionBuilder _isLatest = $v.isLatest; _lastModified = $v.lastModified; _owner = $v.owner?.toBuilder(); + _restoreStatus = $v.restoreStatus?.toBuilder(); _$v = null; } return this; @@ -174,7 +186,8 @@ class ObjectVersionBuilder versionId: versionId, isLatest: isLatest, lastModified: lastModified, - owner: _owner?.build()); + owner: _owner?.build(), + restoreStatus: _restoreStatus?.build()); } catch (_) { late String _$failedField; try { @@ -183,6 +196,8 @@ class ObjectVersionBuilder _$failedField = 'owner'; _owner?.build(); + _$failedField = 'restoreStatus'; + _restoreStatus?.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'ObjectVersion', _$failedField, e.toString()); diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/optional_object_attributes.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/optional_object_attributes.dart new file mode 100644 index 0000000000..76dd0851ee --- /dev/null +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/optional_object_attributes.dart @@ -0,0 +1,60 @@ +// Generated with smithy-dart 0.3.1. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names + +library smoke_test.s3.model.optional_object_attributes; // ignore_for_file: no_leading_underscores_for_library_prefixes + +import 'package:smithy/smithy.dart' as _i1; + +class OptionalObjectAttributes + extends _i1.SmithyEnum { + const OptionalObjectAttributes._( + int index, + String name, + String value, + ) : super( + index, + name, + value, + ); + + const OptionalObjectAttributes._sdkUnknown(String value) + : super.sdkUnknown(value); + + static const restoreStatus = OptionalObjectAttributes._( + 0, + 'RESTORE_STATUS', + 'RestoreStatus', + ); + + /// All values of [OptionalObjectAttributes]. + static const values = [ + OptionalObjectAttributes.restoreStatus + ]; + + static const List<_i1.SmithySerializer> + serializers = [ + _i1.SmithyEnumSerializer( + 'OptionalObjectAttributes', + values: values, + sdkUnknown: OptionalObjectAttributes._sdkUnknown, + supportedProtocols: [ + _i1.ShapeId( + namespace: 'aws.protocols', + shape: 'restXml', + ) + ], + ) + ]; +} + +extension OptionalObjectAttributesHelpers on List { + /// Returns the value of [OptionalObjectAttributes] whose name matches [name]. + /// + /// Throws a `StateError` if no matching value is found. + OptionalObjectAttributes byName(String name) => + firstWhere((el) => el.name.toLowerCase() == name.toLowerCase()); + + /// Returns the value of [OptionalObjectAttributes] whose value matches [value]. + OptionalObjectAttributes byValue(String value) => + firstWhere((el) => el.value == value); +} diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_acl_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_acl_request.dart index 8a5adc1954..d31b3a4567 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_acl_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_acl_request.dart @@ -175,7 +175,7 @@ abstract class PutObjectAclRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get key; /// Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from Requester Pays buckets, see [Downloading Objects in Requester Pays Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the _Amazon S3 User Guide_. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_request.dart index cba2cc391d..4e250a70f4 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_request.dart @@ -289,7 +289,7 @@ abstract class PutObjectRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Can be used to specify caching behavior along the request/reply chain. For more information, see [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9). diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_tagging_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_tagging_request.dart index c8477f4983..bd24b356ef 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_tagging_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/put_object_tagging_request.dart @@ -92,7 +92,7 @@ abstract class PutObjectTaggingRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Name of the object key. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/replication_rule_filter.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/replication_rule_filter.dart index 5d4ce352fb..bdbab37dbd 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/replication_rule_filter.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/replication_rule_filter.dart @@ -16,13 +16,13 @@ sealed class ReplicationRuleFilter const ReplicationRuleFilter._(); const factory ReplicationRuleFilter.prefix(String prefix) = - ReplicationRuleFilterPrefix; + ReplicationRuleFilterPrefix$; factory ReplicationRuleFilter.tag({ required String key, required String value, }) => - ReplicationRuleFilterTag(_i2.Tag( + ReplicationRuleFilterTag$(_i2.Tag( key: key, value: value, )); @@ -31,7 +31,7 @@ sealed class ReplicationRuleFilter String? prefix, List<_i2.Tag>? tags, }) => - ReplicationRuleFilterAnd(_i3.ReplicationRuleAndOperator( + ReplicationRuleFilterAnd$(_i3.ReplicationRuleAndOperator( prefix: prefix, tags: tags, )); @@ -39,7 +39,7 @@ sealed class ReplicationRuleFilter const factory ReplicationRuleFilter.sdkUnknown( String name, Object value, - ) = ReplicationRuleFilterSdkUnknown; + ) = ReplicationRuleFilterSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ ReplicationRuleFilterRestXmlSerializer() @@ -88,8 +88,8 @@ sealed class ReplicationRuleFilter } } -final class ReplicationRuleFilterPrefix extends ReplicationRuleFilter { - const ReplicationRuleFilterPrefix(this.prefix) : super._(); +final class ReplicationRuleFilterPrefix$ extends ReplicationRuleFilter { + const ReplicationRuleFilterPrefix$(this.prefix) : super._(); @override final String prefix; @@ -98,8 +98,8 @@ final class ReplicationRuleFilterPrefix extends ReplicationRuleFilter { String get name => 'Prefix'; } -final class ReplicationRuleFilterTag extends ReplicationRuleFilter { - const ReplicationRuleFilterTag(this.tag) : super._(); +final class ReplicationRuleFilterTag$ extends ReplicationRuleFilter { + const ReplicationRuleFilterTag$(this.tag) : super._(); @override final _i2.Tag tag; @@ -108,8 +108,8 @@ final class ReplicationRuleFilterTag extends ReplicationRuleFilter { String get name => 'Tag'; } -final class ReplicationRuleFilterAnd extends ReplicationRuleFilter { - const ReplicationRuleFilterAnd(this.and) : super._(); +final class ReplicationRuleFilterAnd$ extends ReplicationRuleFilter { + const ReplicationRuleFilterAnd$(this.and) : super._(); @override final _i3.ReplicationRuleAndOperator and; @@ -118,8 +118,8 @@ final class ReplicationRuleFilterAnd extends ReplicationRuleFilter { String get name => 'And'; } -final class ReplicationRuleFilterSdkUnknown extends ReplicationRuleFilter { - const ReplicationRuleFilterSdkUnknown( +final class ReplicationRuleFilterSdkUnknown$ extends ReplicationRuleFilter { + const ReplicationRuleFilterSdkUnknown$( this.name, this.value, ) : super._(); @@ -139,9 +139,9 @@ class ReplicationRuleFilterRestXmlSerializer @override Iterable get types => const [ ReplicationRuleFilter, - ReplicationRuleFilterPrefix, - ReplicationRuleFilterTag, - ReplicationRuleFilterAnd, + ReplicationRuleFilterPrefix$, + ReplicationRuleFilterTag$, + ReplicationRuleFilterAnd$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -159,17 +159,17 @@ class ReplicationRuleFilterRestXmlSerializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'Prefix': - return ReplicationRuleFilterPrefix((serializers.deserialize( + return ReplicationRuleFilterPrefix$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'Tag': - return ReplicationRuleFilterTag((serializers.deserialize( + return ReplicationRuleFilterTag$((serializers.deserialize( value, specifiedType: const FullType(_i2.Tag), ) as _i2.Tag)); case 'And': - return ReplicationRuleFilterAnd((serializers.deserialize( + return ReplicationRuleFilterAnd$((serializers.deserialize( value, specifiedType: const FullType(_i3.ReplicationRuleAndOperator), ) as _i3.ReplicationRuleAndOperator)); @@ -189,19 +189,19 @@ class ReplicationRuleFilterRestXmlSerializer return [ object.name, switch (object) { - ReplicationRuleFilterPrefix(:final value) => serializers.serialize( + ReplicationRuleFilterPrefix$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - ReplicationRuleFilterTag(:final value) => serializers.serialize( + ReplicationRuleFilterTag$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Tag), ), - ReplicationRuleFilterAnd(:final value) => serializers.serialize( + ReplicationRuleFilterAnd$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.ReplicationRuleAndOperator), ), - ReplicationRuleFilterSdkUnknown(:final value) => value, + ReplicationRuleFilterSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/restore_object_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/restore_object_request.dart index 892e0f92fb..743efe4960 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/restore_object_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/restore_object_request.dart @@ -96,7 +96,7 @@ abstract class RestoreObjectRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Object key for which the action was initiated. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/restore_status.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/restore_status.dart new file mode 100644 index 0000000000..06f82cb8b8 --- /dev/null +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/restore_status.dart @@ -0,0 +1,155 @@ +// Generated with smithy-dart 0.3.1. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names + +library smoke_test.s3.model.restore_status; // ignore_for_file: no_leading_underscores_for_library_prefixes + +import 'package:aws_common/aws_common.dart' as _i1; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:smithy/smithy.dart' as _i2; + +part 'restore_status.g.dart'; + +/// Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see [Working with archived objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/archived-objects.html) in the _Amazon S3 User Guide_. +abstract class RestoreStatus + with _i1.AWSEquatable + implements Built { + /// Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see [Working with archived objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/archived-objects.html) in the _Amazon S3 User Guide_. + factory RestoreStatus({ + bool? isRestoreInProgress, + DateTime? restoreExpiryDate, + }) { + return _$RestoreStatus._( + isRestoreInProgress: isRestoreInProgress, + restoreExpiryDate: restoreExpiryDate, + ); + } + + /// Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see [Working with archived objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/archived-objects.html) in the _Amazon S3 User Guide_. + factory RestoreStatus.build([void Function(RestoreStatusBuilder) updates]) = + _$RestoreStatus; + + const RestoreStatus._(); + + static const List<_i2.SmithySerializer> serializers = [ + RestoreStatusRestXmlSerializer() + ]; + + @BuiltValueHook(initializeBuilder: true) + static void _init(RestoreStatusBuilder b) {} + + /// Specifies whether the object is currently being restored. If the object restoration is in progress, the header returns the value `TRUE`. For example: + /// + /// `x-amz-optional-object-attributes: IsRestoreInProgress="true"` + /// + /// If the object restoration has completed, the header returns the value `FALSE`. For example: + /// + /// `x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"` + /// + /// If the object hasn't been restored, there is no header response. + bool? get isRestoreInProgress; + + /// Indicates when the restored copy will expire. This value is populated only if the object has already been restored. For example: + /// + /// `x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"` + DateTime? get restoreExpiryDate; + @override + List get props => [ + isRestoreInProgress, + restoreExpiryDate, + ]; + @override + String toString() { + final helper = newBuiltValueToStringHelper('RestoreStatus') + ..add( + 'isRestoreInProgress', + isRestoreInProgress, + ) + ..add( + 'restoreExpiryDate', + restoreExpiryDate, + ); + return helper.toString(); + } +} + +class RestoreStatusRestXmlSerializer + extends _i2.StructuredSmithySerializer { + const RestoreStatusRestXmlSerializer() : super('RestoreStatus'); + + @override + Iterable get types => const [ + RestoreStatus, + _$RestoreStatus, + ]; + @override + Iterable<_i2.ShapeId> get supportedProtocols => const [ + _i2.ShapeId( + namespace: 'aws.protocols', + shape: 'restXml', + ) + ]; + @override + RestoreStatus deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = RestoreStatusBuilder(); + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current as String; + iterator.moveNext(); + final value = iterator.current; + if (value == null) { + continue; + } + switch (key) { + case 'IsRestoreInProgress': + result.isRestoreInProgress = (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool); + case 'RestoreExpiryDate': + result.restoreExpiryDate = (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) as DateTime); + } + } + + return result.build(); + } + + @override + Iterable serialize( + Serializers serializers, + RestoreStatus object, { + FullType specifiedType = FullType.unspecified, + }) { + final result$ = [ + const _i2.XmlElementName( + 'RestoreStatus', + _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), + ) + ]; + final RestoreStatus(:isRestoreInProgress, :restoreExpiryDate) = object; + if (isRestoreInProgress != null) { + result$ + ..add(const _i2.XmlElementName('IsRestoreInProgress')) + ..add(serializers.serialize( + isRestoreInProgress, + specifiedType: const FullType.nullable(bool), + )); + } + if (restoreExpiryDate != null) { + result$ + ..add(const _i2.XmlElementName('RestoreExpiryDate')) + ..add(serializers.serialize( + restoreExpiryDate, + specifiedType: const FullType.nullable(DateTime), + )); + } + return result$; + } +} diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/restore_status.g.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/restore_status.g.dart new file mode 100644 index 0000000000..e644e0f3d3 --- /dev/null +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/restore_status.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_status.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$RestoreStatus extends RestoreStatus { + @override + final bool? isRestoreInProgress; + @override + final DateTime? restoreExpiryDate; + + factory _$RestoreStatus([void Function(RestoreStatusBuilder)? updates]) => + (new RestoreStatusBuilder()..update(updates))._build(); + + _$RestoreStatus._({this.isRestoreInProgress, this.restoreExpiryDate}) + : super._(); + + @override + RestoreStatus rebuild(void Function(RestoreStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + RestoreStatusBuilder toBuilder() => new RestoreStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is RestoreStatus && + isRestoreInProgress == other.isRestoreInProgress && + restoreExpiryDate == other.restoreExpiryDate; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, isRestoreInProgress.hashCode); + _$hash = $jc(_$hash, restoreExpiryDate.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } +} + +class RestoreStatusBuilder + implements Builder { + _$RestoreStatus? _$v; + + bool? _isRestoreInProgress; + bool? get isRestoreInProgress => _$this._isRestoreInProgress; + set isRestoreInProgress(bool? isRestoreInProgress) => + _$this._isRestoreInProgress = isRestoreInProgress; + + DateTime? _restoreExpiryDate; + DateTime? get restoreExpiryDate => _$this._restoreExpiryDate; + set restoreExpiryDate(DateTime? restoreExpiryDate) => + _$this._restoreExpiryDate = restoreExpiryDate; + + RestoreStatusBuilder() { + RestoreStatus._init(this); + } + + RestoreStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _isRestoreInProgress = $v.isRestoreInProgress; + _restoreExpiryDate = $v.restoreExpiryDate; + _$v = null; + } + return this; + } + + @override + void replace(RestoreStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$RestoreStatus; + } + + @override + void update(void Function(RestoreStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + RestoreStatus build() => _build(); + + _$RestoreStatus _build() { + final _$result = _$v ?? + new _$RestoreStatus._( + isRestoreInProgress: isRestoreInProgress, + restoreExpiryDate: restoreExpiryDate); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart index d294c73f9f..51d558ef06 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart @@ -22,25 +22,26 @@ sealed class SelectObjectContentEventStream const SelectObjectContentEventStream._(); factory SelectObjectContentEventStream.records({_i2.Uint8List? payload}) => - SelectObjectContentEventStreamRecords(_i3.RecordsEvent(payload: payload)); + SelectObjectContentEventStreamRecords$( + _i3.RecordsEvent(payload: payload)); factory SelectObjectContentEventStream.stats({_i4.Stats? details}) => - SelectObjectContentEventStreamStats(_i5.StatsEvent(details: details)); + SelectObjectContentEventStreamStats$(_i5.StatsEvent(details: details)); factory SelectObjectContentEventStream.progress({_i6.Progress? details}) => - SelectObjectContentEventStreamProgress( + SelectObjectContentEventStreamProgress$( _i7.ProgressEvent(details: details)); factory SelectObjectContentEventStream.cont() => - SelectObjectContentEventStreamCont(_i8.ContinuationEvent()); + SelectObjectContentEventStreamCont$(_i8.ContinuationEvent()); factory SelectObjectContentEventStream.end() => - SelectObjectContentEventStreamEnd(_i9.EndEvent()); + SelectObjectContentEventStreamEnd$(_i9.EndEvent()); const factory SelectObjectContentEventStream.sdkUnknown( String name, Object value, - ) = SelectObjectContentEventStreamSdkUnknown; + ) = SelectObjectContentEventStreamSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [SelectObjectContentEventStreamRestXmlSerializer()]; @@ -99,9 +100,9 @@ sealed class SelectObjectContentEventStream } } -final class SelectObjectContentEventStreamRecords +final class SelectObjectContentEventStreamRecords$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamRecords(this.records) : super._(); + const SelectObjectContentEventStreamRecords$(this.records) : super._(); @override final _i3.RecordsEvent records; @@ -110,9 +111,9 @@ final class SelectObjectContentEventStreamRecords String get name => 'Records'; } -final class SelectObjectContentEventStreamStats +final class SelectObjectContentEventStreamStats$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamStats(this.stats) : super._(); + const SelectObjectContentEventStreamStats$(this.stats) : super._(); @override final _i5.StatsEvent stats; @@ -121,9 +122,9 @@ final class SelectObjectContentEventStreamStats String get name => 'Stats'; } -final class SelectObjectContentEventStreamProgress +final class SelectObjectContentEventStreamProgress$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamProgress(this.progress) : super._(); + const SelectObjectContentEventStreamProgress$(this.progress) : super._(); @override final _i7.ProgressEvent progress; @@ -132,9 +133,9 @@ final class SelectObjectContentEventStreamProgress String get name => 'Progress'; } -final class SelectObjectContentEventStreamCont +final class SelectObjectContentEventStreamCont$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamCont(this.cont) : super._(); + const SelectObjectContentEventStreamCont$(this.cont) : super._(); @override final _i8.ContinuationEvent cont; @@ -143,9 +144,9 @@ final class SelectObjectContentEventStreamCont String get name => 'Cont'; } -final class SelectObjectContentEventStreamEnd +final class SelectObjectContentEventStreamEnd$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamEnd(this.end) : super._(); + const SelectObjectContentEventStreamEnd$(this.end) : super._(); @override final _i9.EndEvent end; @@ -154,9 +155,9 @@ final class SelectObjectContentEventStreamEnd String get name => 'End'; } -final class SelectObjectContentEventStreamSdkUnknown +final class SelectObjectContentEventStreamSdkUnknown$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamSdkUnknown( + const SelectObjectContentEventStreamSdkUnknown$( this.name, this.value, ) : super._(); @@ -176,11 +177,11 @@ class SelectObjectContentEventStreamRestXmlSerializer @override Iterable get types => const [ SelectObjectContentEventStream, - SelectObjectContentEventStreamRecords, - SelectObjectContentEventStreamStats, - SelectObjectContentEventStreamProgress, - SelectObjectContentEventStreamCont, - SelectObjectContentEventStreamEnd, + SelectObjectContentEventStreamRecords$, + SelectObjectContentEventStreamStats$, + SelectObjectContentEventStreamProgress$, + SelectObjectContentEventStreamCont$, + SelectObjectContentEventStreamEnd$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -198,27 +199,27 @@ class SelectObjectContentEventStreamRestXmlSerializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'Records': - return SelectObjectContentEventStreamRecords((serializers.deserialize( + return SelectObjectContentEventStreamRecords$((serializers.deserialize( value, specifiedType: const FullType(_i3.RecordsEvent), ) as _i3.RecordsEvent)); case 'Stats': - return SelectObjectContentEventStreamStats((serializers.deserialize( + return SelectObjectContentEventStreamStats$((serializers.deserialize( value, specifiedType: const FullType(_i5.StatsEvent), ) as _i5.StatsEvent)); case 'Progress': - return SelectObjectContentEventStreamProgress((serializers.deserialize( + return SelectObjectContentEventStreamProgress$((serializers.deserialize( value, specifiedType: const FullType(_i7.ProgressEvent), ) as _i7.ProgressEvent)); case 'Cont': - return SelectObjectContentEventStreamCont((serializers.deserialize( + return SelectObjectContentEventStreamCont$((serializers.deserialize( value, specifiedType: const FullType(_i8.ContinuationEvent), ) as _i8.ContinuationEvent)); case 'End': - return SelectObjectContentEventStreamEnd((serializers.deserialize( + return SelectObjectContentEventStreamEnd$((serializers.deserialize( value, specifiedType: const FullType(_i9.EndEvent), ) as _i9.EndEvent)); @@ -238,32 +239,32 @@ class SelectObjectContentEventStreamRestXmlSerializer return [ object.name, switch (object) { - SelectObjectContentEventStreamRecords(:final value) => + SelectObjectContentEventStreamRecords$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.RecordsEvent), ), - SelectObjectContentEventStreamStats(:final value) => + SelectObjectContentEventStreamStats$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i5.StatsEvent), ), - SelectObjectContentEventStreamProgress(:final value) => + SelectObjectContentEventStreamProgress$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i7.ProgressEvent), ), - SelectObjectContentEventStreamCont(:final value) => + SelectObjectContentEventStreamCont$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i8.ContinuationEvent), ), - SelectObjectContentEventStreamEnd(:final value) => + SelectObjectContentEventStreamEnd$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i9.EndEvent), ), - SelectObjectContentEventStreamSdkUnknown(:final value) => value, + SelectObjectContentEventStreamSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/upload_part_copy_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/upload_part_copy_request.dart index 82ac25514f..9320724e36 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/upload_part_copy_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/upload_part_copy_request.dart @@ -171,7 +171,7 @@ abstract class UploadPartCopyRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Specifies the source object for the copy operation. You specify the value in one of two formats, depending on whether you want to access the source object through an [access point](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html): diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/upload_part_request.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/upload_part_request.dart index 47b2c38ef2..00feb2a486 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/upload_part_request.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/model/upload_part_request.dart @@ -151,7 +151,7 @@ abstract class UploadPartRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically. diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_object_versions_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_object_versions_operation.dart index 9205d769ac..4f168c5a7f 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_object_versions_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_object_versions_operation.dart @@ -18,9 +18,9 @@ import 'package:smoke_test/src/sdk/src/s3/model/list_object_versions_request.dar /// Returns metadata about all versions of the objects in a bucket. You can also use request parameters as selection criteria to return metadata about a subset of all the object versions. /// -/// To use this operation, you must have permissions to perform the `s3:ListBucketVersions` action. Be aware of the name difference. +/// To use this operation, you must have permission to perform the `s3:ListBucketVersions` action. Be aware of the name difference. /// -/// 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. +/// 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. /// /// To use this operation, you must have READ access to the bucket. /// @@ -42,9 +42,9 @@ class ListObjectVersionsOperation extends _i1.HttpOperation< _i3.ListObjectVersionsOutput> { /// Returns metadata about all versions of the objects in a bucket. You can also use request parameters as selection criteria to return metadata about a subset of all the object versions. /// - /// To use this operation, you must have permissions to perform the `s3:ListBucketVersions` action. Be aware of the name difference. + /// To use this operation, you must have permission to perform the `s3:ListBucketVersions` action. Be aware of the name difference. /// - /// 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. + /// 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. /// /// To use this operation, you must have READ access to the bucket. /// @@ -138,6 +138,15 @@ class ListObjectVersionsOperation extends _i1.HttpOperation< if (input.requestPayer != null) { b.headers['x-amz-request-payer'] = input.requestPayer!.value; } + if (input.optionalObjectAttributes != null) { + if (input.optionalObjectAttributes!.isNotEmpty) { + b.headers['x-amz-optional-object-attributes'] = input + .optionalObjectAttributes! + .map((el) => el.value) + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); + } + } if (input.delimiter != null) { b.queryParameters.add( 'delimiter', diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_objects_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_objects_operation.dart index 00233f76a2..7c1adf7feb 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_objects_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_objects_operation.dart @@ -126,6 +126,15 @@ class ListObjectsOperation extends _i1.HttpOperation< input.expectedBucketOwner!; } } + if (input.optionalObjectAttributes != null) { + if (input.optionalObjectAttributes!.isNotEmpty) { + b.headers['x-amz-optional-object-attributes'] = input + .optionalObjectAttributes! + .map((el) => el.value) + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); + } + } if (input.delimiter != null) { b.queryParameters.add( 'delimiter', diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart index 4d8473bd34..a3af80fc52 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart @@ -17,13 +17,13 @@ import 'package:smoke_test/src/sdk/src/s3/model/list_objects_v2_request.dart' as _i2; import 'package:smoke_test/src/sdk/src/s3/model/no_such_bucket.dart' as _i9; -/// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) +/// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) in the _Amazon S3 User Guide_. /// /// To use this operation, you must have READ access to the bucket. /// -/// To use this action in an Identity and Access Management (IAM) policy, 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 [Permissions Related to Bucket Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +/// To use this action in an Identity and Access Management (IAM) policy, 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 Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) in the _Amazon S3 User Guide_. /// -/// This section describes the latest revision of this action. We recommend that you use this revised API for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). +/// This section describes the latest revision of this action. We recommend that you use this revised API operation for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API operation, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). /// /// To get a list of your buckets, see [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html). /// @@ -42,13 +42,13 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< String, int, _i3.ListObjectsV2Output> { - /// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) + /// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) in the _Amazon S3 User Guide_. /// /// To use this operation, you must have READ access to the bucket. /// - /// To use this action in an Identity and Access Management (IAM) policy, 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 [Permissions Related to Bucket Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + /// To use this action in an Identity and Access Management (IAM) policy, 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 Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) in the _Amazon S3 User Guide_. /// - /// This section describes the latest revision of this action. We recommend that you use this revised API for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). + /// This section describes the latest revision of this action. We recommend that you use this revised API operation for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API operation, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). /// /// To get a list of your buckets, see [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html). /// @@ -138,6 +138,15 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< input.expectedBucketOwner!; } } + if (input.optionalObjectAttributes != null) { + if (input.optionalObjectAttributes!.isNotEmpty) { + b.headers['x-amz-optional-object-attributes'] = input + .optionalObjectAttributes! + .map((el) => el.value) + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); + } + } if (input.delimiter != null) { b.queryParameters.add( 'delimiter', diff --git a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/s3_client.dart b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/s3_client.dart index bdfafe52aa..5af0533346 100644 --- a/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/s3_client.dart +++ b/packages/aws_sdk/smoke_test/lib/src/sdk/src/s3/s3_client.dart @@ -2820,9 +2820,9 @@ class S3Client { /// Returns metadata about all versions of the objects in a bucket. You can also use request parameters as selection criteria to return metadata about a subset of all the object versions. /// - /// To use this operation, you must have permissions to perform the `s3:ListBucketVersions` action. Be aware of the name difference. + /// To use this operation, you must have permission to perform the `s3:ListBucketVersions` action. Be aware of the name difference. /// - /// 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. + /// 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. /// /// To use this operation, you must have READ access to the bucket. /// @@ -2890,13 +2890,13 @@ class S3Client { ); } - /// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) + /// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) in the _Amazon S3 User Guide_. /// /// To use this operation, you must have READ access to the bucket. /// - /// To use this action in an Identity and Access Management (IAM) policy, 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 [Permissions Related to Bucket Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + /// To use this action in an Identity and Access Management (IAM) policy, 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 Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) in the _Amazon S3 User Guide_. /// - /// This section describes the latest revision of this action. We recommend that you use this revised API for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). + /// This section describes the latest revision of this action. We recommend that you use this revised API operation for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API operation, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). /// /// To get a list of your buckets, see [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html). /// diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart index 122053e0b7..3ba3b0ca3b 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart @@ -17,32 +17,32 @@ import 'package:smithy/smithy.dart' as _i1; sealed class MyUnion extends _i1.SmithyUnion { const MyUnion._(); - const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue; + const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue$; - const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue; + const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue$; - const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue; + const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue$; - const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue; + const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue$; const factory MyUnion.timestampValue(DateTime timestampValue) = - MyUnionTimestampValue; + MyUnionTimestampValue$; - const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue; + const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue$; - const factory MyUnion.intEnumValue(int intEnumValue) = MyUnionIntEnumValue; + const factory MyUnion.intEnumValue(int intEnumValue) = MyUnionIntEnumValue$; - factory MyUnion.listValue(List listValue) = MyUnionListValue; + factory MyUnion.listValue(List listValue) = MyUnionListValue$; - factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue; + factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue$; factory MyUnion.structureValue({String? hi}) => - MyUnionStructureValue(_i4.GreetingStruct(hi: hi)); + MyUnionStructureValue$(_i4.GreetingStruct(hi: hi)); const factory MyUnion.sdkUnknown( String name, Object value, - ) = MyUnionSdkUnknown; + ) = MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ MyUnionAwsJson10Serializer() @@ -136,8 +136,8 @@ sealed class MyUnion extends _i1.SmithyUnion { } } -final class MyUnionStringValue extends MyUnion { - const MyUnionStringValue(this.stringValue) : super._(); +final class MyUnionStringValue$ extends MyUnion { + const MyUnionStringValue$(this.stringValue) : super._(); @override final String stringValue; @@ -146,8 +146,8 @@ final class MyUnionStringValue extends MyUnion { String get name => 'stringValue'; } -final class MyUnionBooleanValue extends MyUnion { - const MyUnionBooleanValue(this.booleanValue) : super._(); +final class MyUnionBooleanValue$ extends MyUnion { + const MyUnionBooleanValue$(this.booleanValue) : super._(); @override final bool booleanValue; @@ -156,8 +156,8 @@ final class MyUnionBooleanValue extends MyUnion { String get name => 'booleanValue'; } -final class MyUnionNumberValue extends MyUnion { - const MyUnionNumberValue(this.numberValue) : super._(); +final class MyUnionNumberValue$ extends MyUnion { + const MyUnionNumberValue$(this.numberValue) : super._(); @override final int numberValue; @@ -166,8 +166,8 @@ final class MyUnionNumberValue extends MyUnion { String get name => 'numberValue'; } -final class MyUnionBlobValue extends MyUnion { - const MyUnionBlobValue(this.blobValue) : super._(); +final class MyUnionBlobValue$ extends MyUnion { + const MyUnionBlobValue$(this.blobValue) : super._(); @override final _i2.Uint8List blobValue; @@ -176,8 +176,8 @@ final class MyUnionBlobValue extends MyUnion { String get name => 'blobValue'; } -final class MyUnionTimestampValue extends MyUnion { - const MyUnionTimestampValue(this.timestampValue) : super._(); +final class MyUnionTimestampValue$ extends MyUnion { + const MyUnionTimestampValue$(this.timestampValue) : super._(); @override final DateTime timestampValue; @@ -186,8 +186,8 @@ final class MyUnionTimestampValue extends MyUnion { String get name => 'timestampValue'; } -final class MyUnionEnumValue extends MyUnion { - const MyUnionEnumValue(this.enumValue) : super._(); +final class MyUnionEnumValue$ extends MyUnion { + const MyUnionEnumValue$(this.enumValue) : super._(); @override final _i3.FooEnum enumValue; @@ -196,8 +196,8 @@ final class MyUnionEnumValue extends MyUnion { String get name => 'enumValue'; } -final class MyUnionIntEnumValue extends MyUnion { - const MyUnionIntEnumValue(this.intEnumValue) : super._(); +final class MyUnionIntEnumValue$ extends MyUnion { + const MyUnionIntEnumValue$(this.intEnumValue) : super._(); @override final int intEnumValue; @@ -206,10 +206,10 @@ final class MyUnionIntEnumValue extends MyUnion { String get name => 'intEnumValue'; } -final class MyUnionListValue extends MyUnion { - MyUnionListValue(List listValue) : this._(_i5.BuiltList(listValue)); +final class MyUnionListValue$ extends MyUnion { + MyUnionListValue$(List listValue) : this._(_i5.BuiltList(listValue)); - const MyUnionListValue._(this.listValue) : super._(); + const MyUnionListValue$._(this.listValue) : super._(); @override final _i5.BuiltList listValue; @@ -218,11 +218,11 @@ final class MyUnionListValue extends MyUnion { String get name => 'listValue'; } -final class MyUnionMapValue extends MyUnion { - MyUnionMapValue(Map mapValue) +final class MyUnionMapValue$ extends MyUnion { + MyUnionMapValue$(Map mapValue) : this._(_i5.BuiltMap(mapValue)); - const MyUnionMapValue._(this.mapValue) : super._(); + const MyUnionMapValue$._(this.mapValue) : super._(); @override final _i5.BuiltMap mapValue; @@ -231,8 +231,8 @@ final class MyUnionMapValue extends MyUnion { String get name => 'mapValue'; } -final class MyUnionStructureValue extends MyUnion { - const MyUnionStructureValue(this.structureValue) : super._(); +final class MyUnionStructureValue$ extends MyUnion { + const MyUnionStructureValue$(this.structureValue) : super._(); @override final _i4.GreetingStruct structureValue; @@ -241,8 +241,8 @@ final class MyUnionStructureValue extends MyUnion { String get name => 'structureValue'; } -final class MyUnionSdkUnknown extends MyUnion { - const MyUnionSdkUnknown( +final class MyUnionSdkUnknown$ extends MyUnion { + const MyUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -261,16 +261,16 @@ class MyUnionAwsJson10Serializer @override Iterable get types => const [ MyUnion, - MyUnionStringValue, - MyUnionBooleanValue, - MyUnionNumberValue, - MyUnionBlobValue, - MyUnionTimestampValue, - MyUnionEnumValue, - MyUnionIntEnumValue, - MyUnionListValue, - MyUnionMapValue, - MyUnionStructureValue, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionIntEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -288,42 +288,42 @@ class MyUnionAwsJson10Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue((serializers.deserialize( + return MyUnionStringValue$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'booleanValue': - return MyUnionBooleanValue((serializers.deserialize( + return MyUnionBooleanValue$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); case 'numberValue': - return MyUnionNumberValue((serializers.deserialize( + return MyUnionNumberValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'blobValue': - return MyUnionBlobValue((serializers.deserialize( + return MyUnionBlobValue$((serializers.deserialize( value, specifiedType: const FullType(_i2.Uint8List), ) as _i2.Uint8List)); case 'timestampValue': - return MyUnionTimestampValue((serializers.deserialize( + return MyUnionTimestampValue$((serializers.deserialize( value, specifiedType: const FullType(DateTime), ) as DateTime)); case 'enumValue': - return MyUnionEnumValue((serializers.deserialize( + return MyUnionEnumValue$((serializers.deserialize( value, specifiedType: const FullType(_i3.FooEnum), ) as _i3.FooEnum)); case 'intEnumValue': - return MyUnionIntEnumValue((serializers.deserialize( + return MyUnionIntEnumValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'listValue': - return MyUnionListValue._((serializers.deserialize( + return MyUnionListValue$._((serializers.deserialize( value, specifiedType: const FullType( _i5.BuiltList, @@ -331,7 +331,7 @@ class MyUnionAwsJson10Serializer ), ) as _i5.BuiltList)); case 'mapValue': - return MyUnionMapValue._((serializers.deserialize( + return MyUnionMapValue$._((serializers.deserialize( value, specifiedType: const FullType( _i5.BuiltMap, @@ -342,7 +342,7 @@ class MyUnionAwsJson10Serializer ), ) as _i5.BuiltMap)); case 'structureValue': - return MyUnionStructureValue((serializers.deserialize( + return MyUnionStructureValue$((serializers.deserialize( value, specifiedType: const FullType(_i4.GreetingStruct), ) as _i4.GreetingStruct)); @@ -362,42 +362,42 @@ class MyUnionAwsJson10Serializer return [ object.name, switch (object) { - MyUnionStringValue(:final value) => serializers.serialize( + MyUnionStringValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - MyUnionBooleanValue(:final value) => serializers.serialize( + MyUnionBooleanValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - MyUnionNumberValue(:final value) => serializers.serialize( + MyUnionNumberValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - MyUnionBlobValue(:final value) => serializers.serialize( + MyUnionBlobValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Uint8List), ), - MyUnionTimestampValue(:final value) => serializers.serialize( + MyUnionTimestampValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(DateTime), ), - MyUnionEnumValue(:final value) => serializers.serialize( + MyUnionEnumValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.FooEnum), ), - MyUnionIntEnumValue(:final value) => serializers.serialize( + MyUnionIntEnumValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - MyUnionListValue(:final value) => serializers.serialize( + MyUnionListValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i5.BuiltList, [FullType(String)], ), ), - MyUnionMapValue(:final value) => serializers.serialize( + MyUnionMapValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i5.BuiltMap, @@ -407,11 +407,11 @@ class MyUnionAwsJson10Serializer ], ), ), - MyUnionStructureValue(:final value) => serializers.serialize( + MyUnionStructureValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i4.GreetingStruct), ), - MyUnionSdkUnknown(:final value) => value, + MyUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/my_union.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/my_union.dart index c22e62418a..4c1328e87a 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/my_union.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/my_union.dart @@ -17,30 +17,30 @@ import 'package:smithy/smithy.dart' as _i1; sealed class MyUnion extends _i1.SmithyUnion { const MyUnion._(); - const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue; + const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue$; - const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue; + const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue$; - const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue; + const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue$; - const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue; + const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue$; const factory MyUnion.timestampValue(DateTime timestampValue) = - MyUnionTimestampValue; + MyUnionTimestampValue$; - const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue; + const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue$; - factory MyUnion.listValue(List listValue) = MyUnionListValue; + factory MyUnion.listValue(List listValue) = MyUnionListValue$; - factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue; + factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue$; factory MyUnion.structureValue({String? hi}) => - MyUnionStructureValue(_i4.GreetingStruct(hi: hi)); + MyUnionStructureValue$(_i4.GreetingStruct(hi: hi)); const factory MyUnion.sdkUnknown( String name, Object value, - ) = MyUnionSdkUnknown; + ) = MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ MyUnionAwsJson11Serializer() @@ -126,8 +126,8 @@ sealed class MyUnion extends _i1.SmithyUnion { } } -final class MyUnionStringValue extends MyUnion { - const MyUnionStringValue(this.stringValue) : super._(); +final class MyUnionStringValue$ extends MyUnion { + const MyUnionStringValue$(this.stringValue) : super._(); @override final String stringValue; @@ -136,8 +136,8 @@ final class MyUnionStringValue extends MyUnion { String get name => 'stringValue'; } -final class MyUnionBooleanValue extends MyUnion { - const MyUnionBooleanValue(this.booleanValue) : super._(); +final class MyUnionBooleanValue$ extends MyUnion { + const MyUnionBooleanValue$(this.booleanValue) : super._(); @override final bool booleanValue; @@ -146,8 +146,8 @@ final class MyUnionBooleanValue extends MyUnion { String get name => 'booleanValue'; } -final class MyUnionNumberValue extends MyUnion { - const MyUnionNumberValue(this.numberValue) : super._(); +final class MyUnionNumberValue$ extends MyUnion { + const MyUnionNumberValue$(this.numberValue) : super._(); @override final int numberValue; @@ -156,8 +156,8 @@ final class MyUnionNumberValue extends MyUnion { String get name => 'numberValue'; } -final class MyUnionBlobValue extends MyUnion { - const MyUnionBlobValue(this.blobValue) : super._(); +final class MyUnionBlobValue$ extends MyUnion { + const MyUnionBlobValue$(this.blobValue) : super._(); @override final _i2.Uint8List blobValue; @@ -166,8 +166,8 @@ final class MyUnionBlobValue extends MyUnion { String get name => 'blobValue'; } -final class MyUnionTimestampValue extends MyUnion { - const MyUnionTimestampValue(this.timestampValue) : super._(); +final class MyUnionTimestampValue$ extends MyUnion { + const MyUnionTimestampValue$(this.timestampValue) : super._(); @override final DateTime timestampValue; @@ -176,8 +176,8 @@ final class MyUnionTimestampValue extends MyUnion { String get name => 'timestampValue'; } -final class MyUnionEnumValue extends MyUnion { - const MyUnionEnumValue(this.enumValue) : super._(); +final class MyUnionEnumValue$ extends MyUnion { + const MyUnionEnumValue$(this.enumValue) : super._(); @override final _i3.FooEnum enumValue; @@ -186,10 +186,10 @@ final class MyUnionEnumValue extends MyUnion { String get name => 'enumValue'; } -final class MyUnionListValue extends MyUnion { - MyUnionListValue(List listValue) : this._(_i5.BuiltList(listValue)); +final class MyUnionListValue$ extends MyUnion { + MyUnionListValue$(List listValue) : this._(_i5.BuiltList(listValue)); - const MyUnionListValue._(this.listValue) : super._(); + const MyUnionListValue$._(this.listValue) : super._(); @override final _i5.BuiltList listValue; @@ -198,11 +198,11 @@ final class MyUnionListValue extends MyUnion { String get name => 'listValue'; } -final class MyUnionMapValue extends MyUnion { - MyUnionMapValue(Map mapValue) +final class MyUnionMapValue$ extends MyUnion { + MyUnionMapValue$(Map mapValue) : this._(_i5.BuiltMap(mapValue)); - const MyUnionMapValue._(this.mapValue) : super._(); + const MyUnionMapValue$._(this.mapValue) : super._(); @override final _i5.BuiltMap mapValue; @@ -211,8 +211,8 @@ final class MyUnionMapValue extends MyUnion { String get name => 'mapValue'; } -final class MyUnionStructureValue extends MyUnion { - const MyUnionStructureValue(this.structureValue) : super._(); +final class MyUnionStructureValue$ extends MyUnion { + const MyUnionStructureValue$(this.structureValue) : super._(); @override final _i4.GreetingStruct structureValue; @@ -221,8 +221,8 @@ final class MyUnionStructureValue extends MyUnion { String get name => 'structureValue'; } -final class MyUnionSdkUnknown extends MyUnion { - const MyUnionSdkUnknown( +final class MyUnionSdkUnknown$ extends MyUnion { + const MyUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -241,15 +241,15 @@ class MyUnionAwsJson11Serializer @override Iterable get types => const [ MyUnion, - MyUnionStringValue, - MyUnionBooleanValue, - MyUnionNumberValue, - MyUnionBlobValue, - MyUnionTimestampValue, - MyUnionEnumValue, - MyUnionListValue, - MyUnionMapValue, - MyUnionStructureValue, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -267,37 +267,37 @@ class MyUnionAwsJson11Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue((serializers.deserialize( + return MyUnionStringValue$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'booleanValue': - return MyUnionBooleanValue((serializers.deserialize( + return MyUnionBooleanValue$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); case 'numberValue': - return MyUnionNumberValue((serializers.deserialize( + return MyUnionNumberValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'blobValue': - return MyUnionBlobValue((serializers.deserialize( + return MyUnionBlobValue$((serializers.deserialize( value, specifiedType: const FullType(_i2.Uint8List), ) as _i2.Uint8List)); case 'timestampValue': - return MyUnionTimestampValue((serializers.deserialize( + return MyUnionTimestampValue$((serializers.deserialize( value, specifiedType: const FullType(DateTime), ) as DateTime)); case 'enumValue': - return MyUnionEnumValue((serializers.deserialize( + return MyUnionEnumValue$((serializers.deserialize( value, specifiedType: const FullType(_i3.FooEnum), ) as _i3.FooEnum)); case 'listValue': - return MyUnionListValue._((serializers.deserialize( + return MyUnionListValue$._((serializers.deserialize( value, specifiedType: const FullType( _i5.BuiltList, @@ -305,7 +305,7 @@ class MyUnionAwsJson11Serializer ), ) as _i5.BuiltList)); case 'mapValue': - return MyUnionMapValue._((serializers.deserialize( + return MyUnionMapValue$._((serializers.deserialize( value, specifiedType: const FullType( _i5.BuiltMap, @@ -316,7 +316,7 @@ class MyUnionAwsJson11Serializer ), ) as _i5.BuiltMap)); case 'structureValue': - return MyUnionStructureValue((serializers.deserialize( + return MyUnionStructureValue$((serializers.deserialize( value, specifiedType: const FullType(_i4.GreetingStruct), ) as _i4.GreetingStruct)); @@ -336,38 +336,38 @@ class MyUnionAwsJson11Serializer return [ object.name, switch (object) { - MyUnionStringValue(:final value) => serializers.serialize( + MyUnionStringValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - MyUnionBooleanValue(:final value) => serializers.serialize( + MyUnionBooleanValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - MyUnionNumberValue(:final value) => serializers.serialize( + MyUnionNumberValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - MyUnionBlobValue(:final value) => serializers.serialize( + MyUnionBlobValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Uint8List), ), - MyUnionTimestampValue(:final value) => serializers.serialize( + MyUnionTimestampValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(DateTime), ), - MyUnionEnumValue(:final value) => serializers.serialize( + MyUnionEnumValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.FooEnum), ), - MyUnionListValue(:final value) => serializers.serialize( + MyUnionListValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i5.BuiltList, [FullType(String)], ), ), - MyUnionMapValue(:final value) => serializers.serialize( + MyUnionMapValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i5.BuiltMap, @@ -377,11 +377,11 @@ class MyUnionAwsJson11Serializer ], ), ), - MyUnionStructureValue(:final value) => serializers.serialize( + MyUnionStructureValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i4.GreetingStruct), ), - MyUnionSdkUnknown(:final value) => value, + MyUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/my_union.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/my_union.dart index 6cf2275fed..c3aef7567d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/my_union.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/my_union.dart @@ -20,33 +20,34 @@ import 'package:smithy/smithy.dart' as _i1; sealed class MyUnion extends _i1.SmithyUnion { const MyUnion._(); - const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue; + const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue$; - const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue; + const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue$; - const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue; + const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue$; - const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue; + const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue$; const factory MyUnion.timestampValue(DateTime timestampValue) = - MyUnionTimestampValue; + MyUnionTimestampValue$; - const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue; + const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue$; - factory MyUnion.listValue(List listValue) = MyUnionListValue; + factory MyUnion.listValue(List listValue) = MyUnionListValue$; - factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue; + factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue$; factory MyUnion.structureValue({String? hi}) => - MyUnionStructureValue(_i4.GreetingStruct(hi: hi)); + MyUnionStructureValue$(_i4.GreetingStruct(hi: hi)); factory MyUnion.renamedStructureValue({String? salutation}) => - MyUnionRenamedStructureValue(_i5.RenamedGreeting(salutation: salutation)); + MyUnionRenamedStructureValue$( + _i5.RenamedGreeting(salutation: salutation)); const factory MyUnion.sdkUnknown( String name, Object value, - ) = MyUnionSdkUnknown; + ) = MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ MyUnionRestJson1Serializer() @@ -140,8 +141,8 @@ sealed class MyUnion extends _i1.SmithyUnion { } } -final class MyUnionStringValue extends MyUnion { - const MyUnionStringValue(this.stringValue) : super._(); +final class MyUnionStringValue$ extends MyUnion { + const MyUnionStringValue$(this.stringValue) : super._(); @override final String stringValue; @@ -150,8 +151,8 @@ final class MyUnionStringValue extends MyUnion { String get name => 'stringValue'; } -final class MyUnionBooleanValue extends MyUnion { - const MyUnionBooleanValue(this.booleanValue) : super._(); +final class MyUnionBooleanValue$ extends MyUnion { + const MyUnionBooleanValue$(this.booleanValue) : super._(); @override final bool booleanValue; @@ -160,8 +161,8 @@ final class MyUnionBooleanValue extends MyUnion { String get name => 'booleanValue'; } -final class MyUnionNumberValue extends MyUnion { - const MyUnionNumberValue(this.numberValue) : super._(); +final class MyUnionNumberValue$ extends MyUnion { + const MyUnionNumberValue$(this.numberValue) : super._(); @override final int numberValue; @@ -170,8 +171,8 @@ final class MyUnionNumberValue extends MyUnion { String get name => 'numberValue'; } -final class MyUnionBlobValue extends MyUnion { - const MyUnionBlobValue(this.blobValue) : super._(); +final class MyUnionBlobValue$ extends MyUnion { + const MyUnionBlobValue$(this.blobValue) : super._(); @override final _i2.Uint8List blobValue; @@ -180,8 +181,8 @@ final class MyUnionBlobValue extends MyUnion { String get name => 'blobValue'; } -final class MyUnionTimestampValue extends MyUnion { - const MyUnionTimestampValue(this.timestampValue) : super._(); +final class MyUnionTimestampValue$ extends MyUnion { + const MyUnionTimestampValue$(this.timestampValue) : super._(); @override final DateTime timestampValue; @@ -190,8 +191,8 @@ final class MyUnionTimestampValue extends MyUnion { String get name => 'timestampValue'; } -final class MyUnionEnumValue extends MyUnion { - const MyUnionEnumValue(this.enumValue) : super._(); +final class MyUnionEnumValue$ extends MyUnion { + const MyUnionEnumValue$(this.enumValue) : super._(); @override final _i3.FooEnum enumValue; @@ -200,10 +201,10 @@ final class MyUnionEnumValue extends MyUnion { String get name => 'enumValue'; } -final class MyUnionListValue extends MyUnion { - MyUnionListValue(List listValue) : this._(_i6.BuiltList(listValue)); +final class MyUnionListValue$ extends MyUnion { + MyUnionListValue$(List listValue) : this._(_i6.BuiltList(listValue)); - const MyUnionListValue._(this.listValue) : super._(); + const MyUnionListValue$._(this.listValue) : super._(); @override final _i6.BuiltList listValue; @@ -212,11 +213,11 @@ final class MyUnionListValue extends MyUnion { String get name => 'listValue'; } -final class MyUnionMapValue extends MyUnion { - MyUnionMapValue(Map mapValue) +final class MyUnionMapValue$ extends MyUnion { + MyUnionMapValue$(Map mapValue) : this._(_i6.BuiltMap(mapValue)); - const MyUnionMapValue._(this.mapValue) : super._(); + const MyUnionMapValue$._(this.mapValue) : super._(); @override final _i6.BuiltMap mapValue; @@ -225,8 +226,8 @@ final class MyUnionMapValue extends MyUnion { String get name => 'mapValue'; } -final class MyUnionStructureValue extends MyUnion { - const MyUnionStructureValue(this.structureValue) : super._(); +final class MyUnionStructureValue$ extends MyUnion { + const MyUnionStructureValue$(this.structureValue) : super._(); @override final _i4.GreetingStruct structureValue; @@ -235,8 +236,8 @@ final class MyUnionStructureValue extends MyUnion { String get name => 'structureValue'; } -final class MyUnionRenamedStructureValue extends MyUnion { - const MyUnionRenamedStructureValue(this.renamedStructureValue) : super._(); +final class MyUnionRenamedStructureValue$ extends MyUnion { + const MyUnionRenamedStructureValue$(this.renamedStructureValue) : super._(); @override final _i5.RenamedGreeting renamedStructureValue; @@ -245,8 +246,8 @@ final class MyUnionRenamedStructureValue extends MyUnion { String get name => 'renamedStructureValue'; } -final class MyUnionSdkUnknown extends MyUnion { - const MyUnionSdkUnknown( +final class MyUnionSdkUnknown$ extends MyUnion { + const MyUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -265,16 +266,16 @@ class MyUnionRestJson1Serializer @override Iterable get types => const [ MyUnion, - MyUnionStringValue, - MyUnionBooleanValue, - MyUnionNumberValue, - MyUnionBlobValue, - MyUnionTimestampValue, - MyUnionEnumValue, - MyUnionListValue, - MyUnionMapValue, - MyUnionStructureValue, - MyUnionRenamedStructureValue, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, + MyUnionRenamedStructureValue$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -292,37 +293,37 @@ class MyUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue((serializers.deserialize( + return MyUnionStringValue$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'booleanValue': - return MyUnionBooleanValue((serializers.deserialize( + return MyUnionBooleanValue$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); case 'numberValue': - return MyUnionNumberValue((serializers.deserialize( + return MyUnionNumberValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'blobValue': - return MyUnionBlobValue((serializers.deserialize( + return MyUnionBlobValue$((serializers.deserialize( value, specifiedType: const FullType(_i2.Uint8List), ) as _i2.Uint8List)); case 'timestampValue': - return MyUnionTimestampValue((serializers.deserialize( + return MyUnionTimestampValue$((serializers.deserialize( value, specifiedType: const FullType(DateTime), ) as DateTime)); case 'enumValue': - return MyUnionEnumValue((serializers.deserialize( + return MyUnionEnumValue$((serializers.deserialize( value, specifiedType: const FullType(_i3.FooEnum), ) as _i3.FooEnum)); case 'listValue': - return MyUnionListValue._((serializers.deserialize( + return MyUnionListValue$._((serializers.deserialize( value, specifiedType: const FullType( _i6.BuiltList, @@ -330,7 +331,7 @@ class MyUnionRestJson1Serializer ), ) as _i6.BuiltList)); case 'mapValue': - return MyUnionMapValue._((serializers.deserialize( + return MyUnionMapValue$._((serializers.deserialize( value, specifiedType: const FullType( _i6.BuiltMap, @@ -341,12 +342,12 @@ class MyUnionRestJson1Serializer ), ) as _i6.BuiltMap)); case 'structureValue': - return MyUnionStructureValue((serializers.deserialize( + return MyUnionStructureValue$((serializers.deserialize( value, specifiedType: const FullType(_i4.GreetingStruct), ) as _i4.GreetingStruct)); case 'renamedStructureValue': - return MyUnionRenamedStructureValue((serializers.deserialize( + return MyUnionRenamedStructureValue$((serializers.deserialize( value, specifiedType: const FullType(_i5.RenamedGreeting), ) as _i5.RenamedGreeting)); @@ -366,38 +367,38 @@ class MyUnionRestJson1Serializer return [ object.name, switch (object) { - MyUnionStringValue(:final value) => serializers.serialize( + MyUnionStringValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - MyUnionBooleanValue(:final value) => serializers.serialize( + MyUnionBooleanValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - MyUnionNumberValue(:final value) => serializers.serialize( + MyUnionNumberValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - MyUnionBlobValue(:final value) => serializers.serialize( + MyUnionBlobValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Uint8List), ), - MyUnionTimestampValue(:final value) => serializers.serialize( + MyUnionTimestampValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(DateTime), ), - MyUnionEnumValue(:final value) => serializers.serialize( + MyUnionEnumValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.FooEnum), ), - MyUnionListValue(:final value) => serializers.serialize( + MyUnionListValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i6.BuiltList, [FullType(String)], ), ), - MyUnionMapValue(:final value) => serializers.serialize( + MyUnionMapValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i6.BuiltMap, @@ -407,15 +408,15 @@ class MyUnionRestJson1Serializer ], ), ), - MyUnionStructureValue(:final value) => serializers.serialize( + MyUnionStructureValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i4.GreetingStruct), ), - MyUnionRenamedStructureValue(:final value) => serializers.serialize( + MyUnionRenamedStructureValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i5.RenamedGreeting), ), - MyUnionSdkUnknown(:final value) => value, + MyUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart index 2a397d8473..5b93c94c45 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart @@ -10,12 +10,12 @@ import 'package:smithy/smithy.dart' as _i1; sealed class PlayerAction extends _i1.SmithyUnion { const PlayerAction._(); - const factory PlayerAction.quit() = PlayerActionQuit; + const factory PlayerAction.quit() = PlayerActionQuit$; const factory PlayerAction.sdkUnknown( String name, Object value, - ) = PlayerActionSdkUnknown; + ) = PlayerActionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ PlayerActionRestJson1Serializer() @@ -38,8 +38,8 @@ sealed class PlayerAction extends _i1.SmithyUnion { } } -final class PlayerActionQuit extends PlayerAction { - const PlayerActionQuit() : super._(); +final class PlayerActionQuit$ extends PlayerAction { + const PlayerActionQuit$() : super._(); @override String get name => 'quit'; @@ -47,8 +47,8 @@ final class PlayerActionQuit extends PlayerAction { _i1.Unit get quit => const _i1.Unit(); } -final class PlayerActionSdkUnknown extends PlayerAction { - const PlayerActionSdkUnknown( +final class PlayerActionSdkUnknown$ extends PlayerAction { + const PlayerActionSdkUnknown$( this.name, this.value, ) : super._(); @@ -67,7 +67,7 @@ class PlayerActionRestJson1Serializer @override Iterable get types => const [ PlayerAction, - PlayerActionQuit, + PlayerActionQuit$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -85,7 +85,7 @@ class PlayerActionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'quit': - return const PlayerActionQuit(); + return const PlayerActionQuit$(); } return PlayerAction.sdkUnknown( key, @@ -102,11 +102,11 @@ class PlayerActionRestJson1Serializer return [ object.name, switch (object) { - PlayerActionQuit(:final value) => serializers.serialize( + PlayerActionQuit$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i1.Unit), ), - PlayerActionSdkUnknown(:final value) => value, + PlayerActionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_union.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_union.dart index 938036a9bb..41ae4f4744 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_union.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_union.dart @@ -10,14 +10,14 @@ import 'package:smithy/smithy.dart' as _i1; sealed class SimpleUnion extends _i1.SmithyUnion { const SimpleUnion._(); - const factory SimpleUnion.int$(int int$) = SimpleUnionInt; + const factory SimpleUnion.int$(int int$) = SimpleUnionInt$; - const factory SimpleUnion.string(String string) = SimpleUnionString; + const factory SimpleUnion.string(String string) = SimpleUnionString$; const factory SimpleUnion.sdkUnknown( String name, Object value, - ) = SimpleUnionSdkUnknown; + ) = SimpleUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ SimpleUnionRestJson1Serializer() @@ -46,8 +46,8 @@ sealed class SimpleUnion extends _i1.SmithyUnion { } } -final class SimpleUnionInt extends SimpleUnion { - const SimpleUnionInt(this.int$) : super._(); +final class SimpleUnionInt$ extends SimpleUnion { + const SimpleUnionInt$(this.int$) : super._(); @override final int int$; @@ -56,8 +56,8 @@ final class SimpleUnionInt extends SimpleUnion { String get name => 'int'; } -final class SimpleUnionString extends SimpleUnion { - const SimpleUnionString(this.string) : super._(); +final class SimpleUnionString$ extends SimpleUnion { + const SimpleUnionString$(this.string) : super._(); @override final String string; @@ -66,8 +66,8 @@ final class SimpleUnionString extends SimpleUnion { String get name => 'string'; } -final class SimpleUnionSdkUnknown extends SimpleUnion { - const SimpleUnionSdkUnknown( +final class SimpleUnionSdkUnknown$ extends SimpleUnion { + const SimpleUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -86,8 +86,8 @@ class SimpleUnionRestJson1Serializer @override Iterable get types => const [ SimpleUnion, - SimpleUnionInt, - SimpleUnionString, + SimpleUnionInt$, + SimpleUnionString$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -105,12 +105,12 @@ class SimpleUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'int': - return SimpleUnionInt((serializers.deserialize( + return SimpleUnionInt$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'string': - return SimpleUnionString((serializers.deserialize( + return SimpleUnionString$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); @@ -130,15 +130,15 @@ class SimpleUnionRestJson1Serializer return [ object.name, switch (object) { - SimpleUnionInt(:final value) => serializers.serialize( + SimpleUnionInt$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - SimpleUnionString(:final value) => serializers.serialize( + SimpleUnionString$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - SimpleUnionSdkUnknown(:final value) => value, + SimpleUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart index e34de354d9..b469037d28 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart @@ -10,16 +10,16 @@ import 'package:smithy/smithy.dart' as _i1; sealed class UnionWithJsonName extends _i1.SmithyUnion { const UnionWithJsonName._(); - const factory UnionWithJsonName.foo(String foo) = UnionWithJsonNameFoo; + const factory UnionWithJsonName.foo(String foo) = UnionWithJsonNameFoo$; - const factory UnionWithJsonName.bar(String bar) = UnionWithJsonNameBar; + const factory UnionWithJsonName.bar(String bar) = UnionWithJsonNameBar$; - const factory UnionWithJsonName.baz(String baz) = UnionWithJsonNameBaz; + const factory UnionWithJsonName.baz(String baz) = UnionWithJsonNameBaz$; const factory UnionWithJsonName.sdkUnknown( String name, Object value, - ) = UnionWithJsonNameSdkUnknown; + ) = UnionWithJsonNameSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ UnionWithJsonNameRestJson1Serializer() @@ -55,8 +55,8 @@ sealed class UnionWithJsonName extends _i1.SmithyUnion { } } -final class UnionWithJsonNameFoo extends UnionWithJsonName { - const UnionWithJsonNameFoo(this.foo) : super._(); +final class UnionWithJsonNameFoo$ extends UnionWithJsonName { + const UnionWithJsonNameFoo$(this.foo) : super._(); @override final String foo; @@ -65,8 +65,8 @@ final class UnionWithJsonNameFoo extends UnionWithJsonName { String get name => 'foo'; } -final class UnionWithJsonNameBar extends UnionWithJsonName { - const UnionWithJsonNameBar(this.bar) : super._(); +final class UnionWithJsonNameBar$ extends UnionWithJsonName { + const UnionWithJsonNameBar$(this.bar) : super._(); @override final String bar; @@ -75,8 +75,8 @@ final class UnionWithJsonNameBar extends UnionWithJsonName { String get name => 'bar'; } -final class UnionWithJsonNameBaz extends UnionWithJsonName { - const UnionWithJsonNameBaz(this.baz) : super._(); +final class UnionWithJsonNameBaz$ extends UnionWithJsonName { + const UnionWithJsonNameBaz$(this.baz) : super._(); @override final String baz; @@ -85,8 +85,8 @@ final class UnionWithJsonNameBaz extends UnionWithJsonName { String get name => 'baz'; } -final class UnionWithJsonNameSdkUnknown extends UnionWithJsonName { - const UnionWithJsonNameSdkUnknown( +final class UnionWithJsonNameSdkUnknown$ extends UnionWithJsonName { + const UnionWithJsonNameSdkUnknown$( this.name, this.value, ) : super._(); @@ -105,9 +105,9 @@ class UnionWithJsonNameRestJson1Serializer @override Iterable get types => const [ UnionWithJsonName, - UnionWithJsonNameFoo, - UnionWithJsonNameBar, - UnionWithJsonNameBaz, + UnionWithJsonNameFoo$, + UnionWithJsonNameBar$, + UnionWithJsonNameBaz$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -125,17 +125,17 @@ class UnionWithJsonNameRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'FOO': - return UnionWithJsonNameFoo((serializers.deserialize( + return UnionWithJsonNameFoo$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'bar': - return UnionWithJsonNameBar((serializers.deserialize( + return UnionWithJsonNameBar$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case '_baz': - return UnionWithJsonNameBaz((serializers.deserialize( + return UnionWithJsonNameBaz$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); @@ -159,19 +159,19 @@ class UnionWithJsonNameRestJson1Serializer return [ renames[object.name] ?? object.name, switch (object) { - UnionWithJsonNameFoo(:final value) => serializers.serialize( + UnionWithJsonNameFoo$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - UnionWithJsonNameBar(:final value) => serializers.serialize( + UnionWithJsonNameBar$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - UnionWithJsonNameBaz(:final value) => serializers.serialize( + UnionWithJsonNameBaz$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - UnionWithJsonNameSdkUnknown(:final value) => value, + UnionWithJsonNameSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart index a631b5b3d3..4160b8676b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart @@ -12,14 +12,14 @@ import 'package:smithy/smithy.dart' as _i1; sealed class EnumUnion extends _i1.SmithyUnion { const EnumUnion._(); - const factory EnumUnion.first(_i2.EnumString first) = EnumUnionFirst; + const factory EnumUnion.first(_i2.EnumString first) = EnumUnionFirst$; - const factory EnumUnion.second(_i2.EnumString second) = EnumUnionSecond; + const factory EnumUnion.second(_i2.EnumString second) = EnumUnionSecond$; const factory EnumUnion.sdkUnknown( String name, Object value, - ) = EnumUnionSdkUnknown; + ) = EnumUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ EnumUnionRestJson1Serializer() @@ -48,8 +48,8 @@ sealed class EnumUnion extends _i1.SmithyUnion { } } -final class EnumUnionFirst extends EnumUnion { - const EnumUnionFirst(this.first) : super._(); +final class EnumUnionFirst$ extends EnumUnion { + const EnumUnionFirst$(this.first) : super._(); @override final _i2.EnumString first; @@ -58,8 +58,8 @@ final class EnumUnionFirst extends EnumUnion { String get name => 'first'; } -final class EnumUnionSecond extends EnumUnion { - const EnumUnionSecond(this.second) : super._(); +final class EnumUnionSecond$ extends EnumUnion { + const EnumUnionSecond$(this.second) : super._(); @override final _i2.EnumString second; @@ -68,8 +68,8 @@ final class EnumUnionSecond extends EnumUnion { String get name => 'second'; } -final class EnumUnionSdkUnknown extends EnumUnion { - const EnumUnionSdkUnknown( +final class EnumUnionSdkUnknown$ extends EnumUnion { + const EnumUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -88,8 +88,8 @@ class EnumUnionRestJson1Serializer @override Iterable get types => const [ EnumUnion, - EnumUnionFirst, - EnumUnionSecond, + EnumUnionFirst$, + EnumUnionSecond$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -107,12 +107,12 @@ class EnumUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return EnumUnionFirst((serializers.deserialize( + return EnumUnionFirst$((serializers.deserialize( value, specifiedType: const FullType(_i2.EnumString), ) as _i2.EnumString)); case 'second': - return EnumUnionSecond((serializers.deserialize( + return EnumUnionSecond$((serializers.deserialize( value, specifiedType: const FullType(_i2.EnumString), ) as _i2.EnumString)); @@ -132,15 +132,15 @@ class EnumUnionRestJson1Serializer return [ object.name, switch (object) { - EnumUnionFirst(:final value) => serializers.serialize( + EnumUnionFirst$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.EnumString), ), - EnumUnionSecond(:final value) => serializers.serialize( + EnumUnionSecond$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.EnumString), ), - EnumUnionSdkUnknown(:final value) => value, + EnumUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart index 2187a7dd8b..bee8180cdb 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart @@ -10,14 +10,14 @@ import 'package:smithy/smithy.dart' as _i1; sealed class FooUnion extends _i1.SmithyUnion { const FooUnion._(); - const factory FooUnion.string(String string) = FooUnionString; + const factory FooUnion.string(String string) = FooUnionString$; - const factory FooUnion.integer(int integer) = FooUnionInteger; + const factory FooUnion.integer(int integer) = FooUnionInteger$; const factory FooUnion.sdkUnknown( String name, Object value, - ) = FooUnionSdkUnknown; + ) = FooUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ FooUnionRestJson1Serializer() @@ -46,8 +46,8 @@ sealed class FooUnion extends _i1.SmithyUnion { } } -final class FooUnionString extends FooUnion { - const FooUnionString(this.string) : super._(); +final class FooUnionString$ extends FooUnion { + const FooUnionString$(this.string) : super._(); @override final String string; @@ -56,8 +56,8 @@ final class FooUnionString extends FooUnion { String get name => 'string'; } -final class FooUnionInteger extends FooUnion { - const FooUnionInteger(this.integer) : super._(); +final class FooUnionInteger$ extends FooUnion { + const FooUnionInteger$(this.integer) : super._(); @override final int integer; @@ -66,8 +66,8 @@ final class FooUnionInteger extends FooUnion { String get name => 'integer'; } -final class FooUnionSdkUnknown extends FooUnion { - const FooUnionSdkUnknown( +final class FooUnionSdkUnknown$ extends FooUnion { + const FooUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -86,8 +86,8 @@ class FooUnionRestJson1Serializer @override Iterable get types => const [ FooUnion, - FooUnionString, - FooUnionInteger, + FooUnionString$, + FooUnionInteger$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -105,12 +105,12 @@ class FooUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return FooUnionString((serializers.deserialize( + return FooUnionString$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'integer': - return FooUnionInteger((serializers.deserialize( + return FooUnionInteger$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); @@ -130,15 +130,15 @@ class FooUnionRestJson1Serializer return [ object.name, switch (object) { - FooUnionString(:final value) => serializers.serialize( + FooUnionString$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - FooUnionInteger(:final value) => serializers.serialize( + FooUnionInteger$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - FooUnionSdkUnknown(:final value) => value, + FooUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart index 7de4b17332..30d20abb0f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart @@ -10,14 +10,14 @@ import 'package:smithy/smithy.dart' as _i1; sealed class PatternUnion extends _i1.SmithyUnion { const PatternUnion._(); - const factory PatternUnion.first(String first) = PatternUnionFirst; + const factory PatternUnion.first(String first) = PatternUnionFirst$; - const factory PatternUnion.second(String second) = PatternUnionSecond; + const factory PatternUnion.second(String second) = PatternUnionSecond$; const factory PatternUnion.sdkUnknown( String name, Object value, - ) = PatternUnionSdkUnknown; + ) = PatternUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ PatternUnionRestJson1Serializer() @@ -46,8 +46,8 @@ sealed class PatternUnion extends _i1.SmithyUnion { } } -final class PatternUnionFirst extends PatternUnion { - const PatternUnionFirst(this.first) : super._(); +final class PatternUnionFirst$ extends PatternUnion { + const PatternUnionFirst$(this.first) : super._(); @override final String first; @@ -56,8 +56,8 @@ final class PatternUnionFirst extends PatternUnion { String get name => 'first'; } -final class PatternUnionSecond extends PatternUnion { - const PatternUnionSecond(this.second) : super._(); +final class PatternUnionSecond$ extends PatternUnion { + const PatternUnionSecond$(this.second) : super._(); @override final String second; @@ -66,8 +66,8 @@ final class PatternUnionSecond extends PatternUnion { String get name => 'second'; } -final class PatternUnionSdkUnknown extends PatternUnion { - const PatternUnionSdkUnknown( +final class PatternUnionSdkUnknown$ extends PatternUnion { + const PatternUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -86,8 +86,8 @@ class PatternUnionRestJson1Serializer @override Iterable get types => const [ PatternUnion, - PatternUnionFirst, - PatternUnionSecond, + PatternUnionFirst$, + PatternUnionSecond$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -105,12 +105,12 @@ class PatternUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return PatternUnionFirst((serializers.deserialize( + return PatternUnionFirst$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'second': - return PatternUnionSecond((serializers.deserialize( + return PatternUnionSecond$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); @@ -130,15 +130,15 @@ class PatternUnionRestJson1Serializer return [ object.name, switch (object) { - PatternUnionFirst(:final value) => serializers.serialize( + PatternUnionFirst$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - PatternUnionSecond(:final value) => serializers.serialize( + PatternUnionSecond$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - PatternUnionSdkUnknown(:final value) => value, + PatternUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart index 3e2095a30e..5dac8382aa 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart @@ -12,15 +12,15 @@ sealed class PatternUnionOverride const PatternUnionOverride._(); const factory PatternUnionOverride.first(String first) = - PatternUnionOverrideFirst; + PatternUnionOverrideFirst$; const factory PatternUnionOverride.second(String second) = - PatternUnionOverrideSecond; + PatternUnionOverrideSecond$; const factory PatternUnionOverride.sdkUnknown( String name, Object value, - ) = PatternUnionOverrideSdkUnknown; + ) = PatternUnionOverrideSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ PatternUnionOverrideRestJson1Serializer() @@ -49,8 +49,8 @@ sealed class PatternUnionOverride } } -final class PatternUnionOverrideFirst extends PatternUnionOverride { - const PatternUnionOverrideFirst(this.first) : super._(); +final class PatternUnionOverrideFirst$ extends PatternUnionOverride { + const PatternUnionOverrideFirst$(this.first) : super._(); @override final String first; @@ -59,8 +59,8 @@ final class PatternUnionOverrideFirst extends PatternUnionOverride { String get name => 'first'; } -final class PatternUnionOverrideSecond extends PatternUnionOverride { - const PatternUnionOverrideSecond(this.second) : super._(); +final class PatternUnionOverrideSecond$ extends PatternUnionOverride { + const PatternUnionOverrideSecond$(this.second) : super._(); @override final String second; @@ -69,8 +69,8 @@ final class PatternUnionOverrideSecond extends PatternUnionOverride { String get name => 'second'; } -final class PatternUnionOverrideSdkUnknown extends PatternUnionOverride { - const PatternUnionOverrideSdkUnknown( +final class PatternUnionOverrideSdkUnknown$ extends PatternUnionOverride { + const PatternUnionOverrideSdkUnknown$( this.name, this.value, ) : super._(); @@ -90,8 +90,8 @@ class PatternUnionOverrideRestJson1Serializer @override Iterable get types => const [ PatternUnionOverride, - PatternUnionOverrideFirst, - PatternUnionOverrideSecond, + PatternUnionOverrideFirst$, + PatternUnionOverrideSecond$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -109,12 +109,12 @@ class PatternUnionOverrideRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return PatternUnionOverrideFirst((serializers.deserialize( + return PatternUnionOverrideFirst$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'second': - return PatternUnionOverrideSecond((serializers.deserialize( + return PatternUnionOverrideSecond$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); @@ -134,15 +134,15 @@ class PatternUnionOverrideRestJson1Serializer return [ object.name, switch (object) { - PatternUnionOverrideFirst(:final value) => serializers.serialize( + PatternUnionOverrideFirst$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - PatternUnionOverrideSecond(:final value) => serializers.serialize( + PatternUnionOverrideSecond$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - PatternUnionOverrideSdkUnknown(:final value) => value, + PatternUnionOverrideSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart index ff9a0cb08a..bec7bed072 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart @@ -15,15 +15,15 @@ sealed class RecursiveUnionOne extends _i1.SmithyUnion { const RecursiveUnionOne._(); const factory RecursiveUnionOne.string(_i2.RecursiveEnumString string) = - RecursiveUnionOneString; + RecursiveUnionOneString$; const factory RecursiveUnionOne.union(_i3.RecursiveUnionTwo union) = - RecursiveUnionOneUnion; + RecursiveUnionOneUnion$; const factory RecursiveUnionOne.sdkUnknown( String name, Object value, - ) = RecursiveUnionOneSdkUnknown; + ) = RecursiveUnionOneSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ RecursiveUnionOneRestJson1Serializer() @@ -52,8 +52,8 @@ sealed class RecursiveUnionOne extends _i1.SmithyUnion { } } -final class RecursiveUnionOneString extends RecursiveUnionOne { - const RecursiveUnionOneString(this.string) : super._(); +final class RecursiveUnionOneString$ extends RecursiveUnionOne { + const RecursiveUnionOneString$(this.string) : super._(); @override final _i2.RecursiveEnumString string; @@ -62,8 +62,8 @@ final class RecursiveUnionOneString extends RecursiveUnionOne { String get name => 'string'; } -final class RecursiveUnionOneUnion extends RecursiveUnionOne { - const RecursiveUnionOneUnion(this.union) : super._(); +final class RecursiveUnionOneUnion$ extends RecursiveUnionOne { + const RecursiveUnionOneUnion$(this.union) : super._(); @override final _i3.RecursiveUnionTwo union; @@ -72,8 +72,8 @@ final class RecursiveUnionOneUnion extends RecursiveUnionOne { String get name => 'union'; } -final class RecursiveUnionOneSdkUnknown extends RecursiveUnionOne { - const RecursiveUnionOneSdkUnknown( +final class RecursiveUnionOneSdkUnknown$ extends RecursiveUnionOne { + const RecursiveUnionOneSdkUnknown$( this.name, this.value, ) : super._(); @@ -92,8 +92,8 @@ class RecursiveUnionOneRestJson1Serializer @override Iterable get types => const [ RecursiveUnionOne, - RecursiveUnionOneString, - RecursiveUnionOneUnion, + RecursiveUnionOneString$, + RecursiveUnionOneUnion$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -111,12 +111,12 @@ class RecursiveUnionOneRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return RecursiveUnionOneString((serializers.deserialize( + return RecursiveUnionOneString$((serializers.deserialize( value, specifiedType: const FullType(_i2.RecursiveEnumString), ) as _i2.RecursiveEnumString)); case 'union': - return RecursiveUnionOneUnion((serializers.deserialize( + return RecursiveUnionOneUnion$((serializers.deserialize( value, specifiedType: const FullType(_i3.RecursiveUnionTwo), ) as _i3.RecursiveUnionTwo)); @@ -136,15 +136,15 @@ class RecursiveUnionOneRestJson1Serializer return [ object.name, switch (object) { - RecursiveUnionOneString(:final value) => serializers.serialize( + RecursiveUnionOneString$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.RecursiveEnumString), ), - RecursiveUnionOneUnion(:final value) => serializers.serialize( + RecursiveUnionOneUnion$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.RecursiveUnionTwo), ), - RecursiveUnionOneSdkUnknown(:final value) => value, + RecursiveUnionOneSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart index e131538041..7fe6ce37e5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart @@ -15,15 +15,15 @@ sealed class RecursiveUnionTwo extends _i1.SmithyUnion { const RecursiveUnionTwo._(); const factory RecursiveUnionTwo.string(_i2.RecursiveEnumString string) = - RecursiveUnionTwoString; + RecursiveUnionTwoString$; const factory RecursiveUnionTwo.union(_i3.RecursiveUnionOne union) = - RecursiveUnionTwoUnion; + RecursiveUnionTwoUnion$; const factory RecursiveUnionTwo.sdkUnknown( String name, Object value, - ) = RecursiveUnionTwoSdkUnknown; + ) = RecursiveUnionTwoSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ RecursiveUnionTwoRestJson1Serializer() @@ -52,8 +52,8 @@ sealed class RecursiveUnionTwo extends _i1.SmithyUnion { } } -final class RecursiveUnionTwoString extends RecursiveUnionTwo { - const RecursiveUnionTwoString(this.string) : super._(); +final class RecursiveUnionTwoString$ extends RecursiveUnionTwo { + const RecursiveUnionTwoString$(this.string) : super._(); @override final _i2.RecursiveEnumString string; @@ -62,8 +62,8 @@ final class RecursiveUnionTwoString extends RecursiveUnionTwo { String get name => 'string'; } -final class RecursiveUnionTwoUnion extends RecursiveUnionTwo { - const RecursiveUnionTwoUnion(this.union) : super._(); +final class RecursiveUnionTwoUnion$ extends RecursiveUnionTwo { + const RecursiveUnionTwoUnion$(this.union) : super._(); @override final _i3.RecursiveUnionOne union; @@ -72,8 +72,8 @@ final class RecursiveUnionTwoUnion extends RecursiveUnionTwo { String get name => 'union'; } -final class RecursiveUnionTwoSdkUnknown extends RecursiveUnionTwo { - const RecursiveUnionTwoSdkUnknown( +final class RecursiveUnionTwoSdkUnknown$ extends RecursiveUnionTwo { + const RecursiveUnionTwoSdkUnknown$( this.name, this.value, ) : super._(); @@ -92,8 +92,8 @@ class RecursiveUnionTwoRestJson1Serializer @override Iterable get types => const [ RecursiveUnionTwo, - RecursiveUnionTwoString, - RecursiveUnionTwoUnion, + RecursiveUnionTwoString$, + RecursiveUnionTwoUnion$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -111,12 +111,12 @@ class RecursiveUnionTwoRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return RecursiveUnionTwoString((serializers.deserialize( + return RecursiveUnionTwoString$((serializers.deserialize( value, specifiedType: const FullType(_i2.RecursiveEnumString), ) as _i2.RecursiveEnumString)); case 'union': - return RecursiveUnionTwoUnion((serializers.deserialize( + return RecursiveUnionTwoUnion$((serializers.deserialize( value, specifiedType: const FullType(_i3.RecursiveUnionOne), ) as _i3.RecursiveUnionOne)); @@ -136,15 +136,15 @@ class RecursiveUnionTwoRestJson1Serializer return [ object.name, switch (object) { - RecursiveUnionTwoString(:final value) => serializers.serialize( + RecursiveUnionTwoString$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.RecursiveEnumString), ), - RecursiveUnionTwoUnion(:final value) => serializers.serialize( + RecursiveUnionTwoUnion$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.RecursiveUnionOne), ), - RecursiveUnionTwoSdkUnknown(:final value) => value, + RecursiveUnionTwoSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart index 0597058fa9..ade09dbc9c 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart @@ -14,30 +14,31 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { const XmlUnionShape._(); const factory XmlUnionShape.stringValue(String stringValue) = - XmlUnionShapeStringValue; + XmlUnionShapeStringValue$; const factory XmlUnionShape.booleanValue(bool booleanValue) = - XmlUnionShapeBooleanValue; + XmlUnionShapeBooleanValue$; - const factory XmlUnionShape.byteValue(int byteValue) = XmlUnionShapeByteValue; + const factory XmlUnionShape.byteValue(int byteValue) = + XmlUnionShapeByteValue$; const factory XmlUnionShape.shortValue(int shortValue) = - XmlUnionShapeShortValue; + XmlUnionShapeShortValue$; const factory XmlUnionShape.integerValue(int integerValue) = - XmlUnionShapeIntegerValue; + XmlUnionShapeIntegerValue$; const factory XmlUnionShape.longValue(_i2.Int64 longValue) = - XmlUnionShapeLongValue; + XmlUnionShapeLongValue$; const factory XmlUnionShape.floatValue(double floatValue) = - XmlUnionShapeFloatValue; + XmlUnionShapeFloatValue$; const factory XmlUnionShape.doubleValue(double doubleValue) = - XmlUnionShapeDoubleValue; + XmlUnionShapeDoubleValue$; const factory XmlUnionShape.unionValue(XmlUnionShape unionValue) = - XmlUnionShapeUnionValue; + XmlUnionShapeUnionValue$; factory XmlUnionShape.structValue({ String? stringValue, @@ -49,7 +50,7 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { double? floatValue, double? doubleValue, }) => - XmlUnionShapeStructValue(_i3.XmlNestedUnionStruct( + XmlUnionShapeStructValue$(_i3.XmlNestedUnionStruct( stringValue: stringValue, booleanValue: booleanValue, byteValue: byteValue, @@ -63,7 +64,7 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { const factory XmlUnionShape.sdkUnknown( String name, Object value, - ) = XmlUnionShapeSdkUnknown; + ) = XmlUnionShapeSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ XmlUnionShapeRestXmlSerializer() @@ -157,8 +158,8 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { } } -final class XmlUnionShapeStringValue extends XmlUnionShape { - const XmlUnionShapeStringValue(this.stringValue) : super._(); +final class XmlUnionShapeStringValue$ extends XmlUnionShape { + const XmlUnionShapeStringValue$(this.stringValue) : super._(); @override final String stringValue; @@ -167,8 +168,8 @@ final class XmlUnionShapeStringValue extends XmlUnionShape { String get name => 'stringValue'; } -final class XmlUnionShapeBooleanValue extends XmlUnionShape { - const XmlUnionShapeBooleanValue(this.booleanValue) : super._(); +final class XmlUnionShapeBooleanValue$ extends XmlUnionShape { + const XmlUnionShapeBooleanValue$(this.booleanValue) : super._(); @override final bool booleanValue; @@ -177,8 +178,8 @@ final class XmlUnionShapeBooleanValue extends XmlUnionShape { String get name => 'booleanValue'; } -final class XmlUnionShapeByteValue extends XmlUnionShape { - const XmlUnionShapeByteValue(this.byteValue) : super._(); +final class XmlUnionShapeByteValue$ extends XmlUnionShape { + const XmlUnionShapeByteValue$(this.byteValue) : super._(); @override final int byteValue; @@ -187,8 +188,8 @@ final class XmlUnionShapeByteValue extends XmlUnionShape { String get name => 'byteValue'; } -final class XmlUnionShapeShortValue extends XmlUnionShape { - const XmlUnionShapeShortValue(this.shortValue) : super._(); +final class XmlUnionShapeShortValue$ extends XmlUnionShape { + const XmlUnionShapeShortValue$(this.shortValue) : super._(); @override final int shortValue; @@ -197,8 +198,8 @@ final class XmlUnionShapeShortValue extends XmlUnionShape { String get name => 'shortValue'; } -final class XmlUnionShapeIntegerValue extends XmlUnionShape { - const XmlUnionShapeIntegerValue(this.integerValue) : super._(); +final class XmlUnionShapeIntegerValue$ extends XmlUnionShape { + const XmlUnionShapeIntegerValue$(this.integerValue) : super._(); @override final int integerValue; @@ -207,8 +208,8 @@ final class XmlUnionShapeIntegerValue extends XmlUnionShape { String get name => 'integerValue'; } -final class XmlUnionShapeLongValue extends XmlUnionShape { - const XmlUnionShapeLongValue(this.longValue) : super._(); +final class XmlUnionShapeLongValue$ extends XmlUnionShape { + const XmlUnionShapeLongValue$(this.longValue) : super._(); @override final _i2.Int64 longValue; @@ -217,8 +218,8 @@ final class XmlUnionShapeLongValue extends XmlUnionShape { String get name => 'longValue'; } -final class XmlUnionShapeFloatValue extends XmlUnionShape { - const XmlUnionShapeFloatValue(this.floatValue) : super._(); +final class XmlUnionShapeFloatValue$ extends XmlUnionShape { + const XmlUnionShapeFloatValue$(this.floatValue) : super._(); @override final double floatValue; @@ -227,8 +228,8 @@ final class XmlUnionShapeFloatValue extends XmlUnionShape { String get name => 'floatValue'; } -final class XmlUnionShapeDoubleValue extends XmlUnionShape { - const XmlUnionShapeDoubleValue(this.doubleValue) : super._(); +final class XmlUnionShapeDoubleValue$ extends XmlUnionShape { + const XmlUnionShapeDoubleValue$(this.doubleValue) : super._(); @override final double doubleValue; @@ -237,8 +238,8 @@ final class XmlUnionShapeDoubleValue extends XmlUnionShape { String get name => 'doubleValue'; } -final class XmlUnionShapeUnionValue extends XmlUnionShape { - const XmlUnionShapeUnionValue(this.unionValue) : super._(); +final class XmlUnionShapeUnionValue$ extends XmlUnionShape { + const XmlUnionShapeUnionValue$(this.unionValue) : super._(); @override final XmlUnionShape unionValue; @@ -247,8 +248,8 @@ final class XmlUnionShapeUnionValue extends XmlUnionShape { String get name => 'unionValue'; } -final class XmlUnionShapeStructValue extends XmlUnionShape { - const XmlUnionShapeStructValue(this.structValue) : super._(); +final class XmlUnionShapeStructValue$ extends XmlUnionShape { + const XmlUnionShapeStructValue$(this.structValue) : super._(); @override final _i3.XmlNestedUnionStruct structValue; @@ -257,8 +258,8 @@ final class XmlUnionShapeStructValue extends XmlUnionShape { String get name => 'structValue'; } -final class XmlUnionShapeSdkUnknown extends XmlUnionShape { - const XmlUnionShapeSdkUnknown( +final class XmlUnionShapeSdkUnknown$ extends XmlUnionShape { + const XmlUnionShapeSdkUnknown$( this.name, this.value, ) : super._(); @@ -277,16 +278,16 @@ class XmlUnionShapeRestXmlSerializer @override Iterable get types => const [ XmlUnionShape, - XmlUnionShapeStringValue, - XmlUnionShapeBooleanValue, - XmlUnionShapeByteValue, - XmlUnionShapeShortValue, - XmlUnionShapeIntegerValue, - XmlUnionShapeLongValue, - XmlUnionShapeFloatValue, - XmlUnionShapeDoubleValue, - XmlUnionShapeUnionValue, - XmlUnionShapeStructValue, + XmlUnionShapeStringValue$, + XmlUnionShapeBooleanValue$, + XmlUnionShapeByteValue$, + XmlUnionShapeShortValue$, + XmlUnionShapeIntegerValue$, + XmlUnionShapeLongValue$, + XmlUnionShapeFloatValue$, + XmlUnionShapeDoubleValue$, + XmlUnionShapeUnionValue$, + XmlUnionShapeStructValue$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -304,52 +305,52 @@ class XmlUnionShapeRestXmlSerializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return XmlUnionShapeStringValue((serializers.deserialize( + return XmlUnionShapeStringValue$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'booleanValue': - return XmlUnionShapeBooleanValue((serializers.deserialize( + return XmlUnionShapeBooleanValue$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); case 'byteValue': - return XmlUnionShapeByteValue((serializers.deserialize( + return XmlUnionShapeByteValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'shortValue': - return XmlUnionShapeShortValue((serializers.deserialize( + return XmlUnionShapeShortValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'integerValue': - return XmlUnionShapeIntegerValue((serializers.deserialize( + return XmlUnionShapeIntegerValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'longValue': - return XmlUnionShapeLongValue((serializers.deserialize( + return XmlUnionShapeLongValue$((serializers.deserialize( value, specifiedType: const FullType(_i2.Int64), ) as _i2.Int64)); case 'floatValue': - return XmlUnionShapeFloatValue((serializers.deserialize( + return XmlUnionShapeFloatValue$((serializers.deserialize( value, specifiedType: const FullType(double), ) as double)); case 'doubleValue': - return XmlUnionShapeDoubleValue((serializers.deserialize( + return XmlUnionShapeDoubleValue$((serializers.deserialize( value, specifiedType: const FullType(double), ) as double)); case 'unionValue': - return XmlUnionShapeUnionValue((serializers.deserialize( + return XmlUnionShapeUnionValue$((serializers.deserialize( value, specifiedType: const FullType(XmlUnionShape), ) as XmlUnionShape)); case 'structValue': - return XmlUnionShapeStructValue((serializers.deserialize( + return XmlUnionShapeStructValue$((serializers.deserialize( value, specifiedType: const FullType(_i3.XmlNestedUnionStruct), ) as _i3.XmlNestedUnionStruct)); @@ -369,47 +370,47 @@ class XmlUnionShapeRestXmlSerializer return [ object.name, switch (object) { - XmlUnionShapeStringValue(:final value) => serializers.serialize( + XmlUnionShapeStringValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - XmlUnionShapeBooleanValue(:final value) => serializers.serialize( + XmlUnionShapeBooleanValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - XmlUnionShapeByteValue(:final value) => serializers.serialize( + XmlUnionShapeByteValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - XmlUnionShapeShortValue(:final value) => serializers.serialize( + XmlUnionShapeShortValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - XmlUnionShapeIntegerValue(:final value) => serializers.serialize( + XmlUnionShapeIntegerValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - XmlUnionShapeLongValue(:final value) => serializers.serialize( + XmlUnionShapeLongValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Int64), ), - XmlUnionShapeFloatValue(:final value) => serializers.serialize( + XmlUnionShapeFloatValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(double), ), - XmlUnionShapeDoubleValue(:final value) => serializers.serialize( + XmlUnionShapeDoubleValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(double), ), - XmlUnionShapeUnionValue(:final value) => serializers.serialize( + XmlUnionShapeUnionValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(XmlUnionShape), ), - XmlUnionShapeStructValue(:final value) => serializers.serialize( + XmlUnionShapeStructValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.XmlNestedUnionStruct), ), - XmlUnionShapeSdkUnknown(:final value) => value, + XmlUnionShapeSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart index 58cc336791..59a9192ac4 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart @@ -18,33 +18,33 @@ import 'package:smithy/smithy.dart' as _i1; sealed class MyUnion extends _i1.SmithyUnion { const MyUnion._(); - const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue; + const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue$; - const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue; + const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue$; - const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue; + const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue$; - const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue; + const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue$; const factory MyUnion.timestampValue(DateTime timestampValue) = - MyUnionTimestampValue; + MyUnionTimestampValue$; - const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue; + const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue$; const factory MyUnion.intEnumValue(_i4.IntegerEnum intEnumValue) = - MyUnionIntEnumValue; + MyUnionIntEnumValue$; - factory MyUnion.listValue(List listValue) = MyUnionListValue; + factory MyUnion.listValue(List listValue) = MyUnionListValue$; - factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue; + factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue$; factory MyUnion.structureValue({String? hi}) => - MyUnionStructureValue(_i5.GreetingStruct(hi: hi)); + MyUnionStructureValue$(_i5.GreetingStruct(hi: hi)); const factory MyUnion.sdkUnknown( String name, Object value, - ) = MyUnionSdkUnknown; + ) = MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ MyUnionAwsJson10Serializer() @@ -138,8 +138,8 @@ sealed class MyUnion extends _i1.SmithyUnion { } } -final class MyUnionStringValue extends MyUnion { - const MyUnionStringValue(this.stringValue) : super._(); +final class MyUnionStringValue$ extends MyUnion { + const MyUnionStringValue$(this.stringValue) : super._(); @override final String stringValue; @@ -148,8 +148,8 @@ final class MyUnionStringValue extends MyUnion { String get name => 'stringValue'; } -final class MyUnionBooleanValue extends MyUnion { - const MyUnionBooleanValue(this.booleanValue) : super._(); +final class MyUnionBooleanValue$ extends MyUnion { + const MyUnionBooleanValue$(this.booleanValue) : super._(); @override final bool booleanValue; @@ -158,8 +158,8 @@ final class MyUnionBooleanValue extends MyUnion { String get name => 'booleanValue'; } -final class MyUnionNumberValue extends MyUnion { - const MyUnionNumberValue(this.numberValue) : super._(); +final class MyUnionNumberValue$ extends MyUnion { + const MyUnionNumberValue$(this.numberValue) : super._(); @override final int numberValue; @@ -168,8 +168,8 @@ final class MyUnionNumberValue extends MyUnion { String get name => 'numberValue'; } -final class MyUnionBlobValue extends MyUnion { - const MyUnionBlobValue(this.blobValue) : super._(); +final class MyUnionBlobValue$ extends MyUnion { + const MyUnionBlobValue$(this.blobValue) : super._(); @override final _i2.Uint8List blobValue; @@ -178,8 +178,8 @@ final class MyUnionBlobValue extends MyUnion { String get name => 'blobValue'; } -final class MyUnionTimestampValue extends MyUnion { - const MyUnionTimestampValue(this.timestampValue) : super._(); +final class MyUnionTimestampValue$ extends MyUnion { + const MyUnionTimestampValue$(this.timestampValue) : super._(); @override final DateTime timestampValue; @@ -188,8 +188,8 @@ final class MyUnionTimestampValue extends MyUnion { String get name => 'timestampValue'; } -final class MyUnionEnumValue extends MyUnion { - const MyUnionEnumValue(this.enumValue) : super._(); +final class MyUnionEnumValue$ extends MyUnion { + const MyUnionEnumValue$(this.enumValue) : super._(); @override final _i3.FooEnum enumValue; @@ -198,8 +198,8 @@ final class MyUnionEnumValue extends MyUnion { String get name => 'enumValue'; } -final class MyUnionIntEnumValue extends MyUnion { - const MyUnionIntEnumValue(this.intEnumValue) : super._(); +final class MyUnionIntEnumValue$ extends MyUnion { + const MyUnionIntEnumValue$(this.intEnumValue) : super._(); @override final _i4.IntegerEnum intEnumValue; @@ -208,10 +208,10 @@ final class MyUnionIntEnumValue extends MyUnion { String get name => 'intEnumValue'; } -final class MyUnionListValue extends MyUnion { - MyUnionListValue(List listValue) : this._(_i6.BuiltList(listValue)); +final class MyUnionListValue$ extends MyUnion { + MyUnionListValue$(List listValue) : this._(_i6.BuiltList(listValue)); - const MyUnionListValue._(this.listValue) : super._(); + const MyUnionListValue$._(this.listValue) : super._(); @override final _i6.BuiltList listValue; @@ -220,11 +220,11 @@ final class MyUnionListValue extends MyUnion { String get name => 'listValue'; } -final class MyUnionMapValue extends MyUnion { - MyUnionMapValue(Map mapValue) +final class MyUnionMapValue$ extends MyUnion { + MyUnionMapValue$(Map mapValue) : this._(_i6.BuiltMap(mapValue)); - const MyUnionMapValue._(this.mapValue) : super._(); + const MyUnionMapValue$._(this.mapValue) : super._(); @override final _i6.BuiltMap mapValue; @@ -233,8 +233,8 @@ final class MyUnionMapValue extends MyUnion { String get name => 'mapValue'; } -final class MyUnionStructureValue extends MyUnion { - const MyUnionStructureValue(this.structureValue) : super._(); +final class MyUnionStructureValue$ extends MyUnion { + const MyUnionStructureValue$(this.structureValue) : super._(); @override final _i5.GreetingStruct structureValue; @@ -243,8 +243,8 @@ final class MyUnionStructureValue extends MyUnion { String get name => 'structureValue'; } -final class MyUnionSdkUnknown extends MyUnion { - const MyUnionSdkUnknown( +final class MyUnionSdkUnknown$ extends MyUnion { + const MyUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -263,16 +263,16 @@ class MyUnionAwsJson10Serializer @override Iterable get types => const [ MyUnion, - MyUnionStringValue, - MyUnionBooleanValue, - MyUnionNumberValue, - MyUnionBlobValue, - MyUnionTimestampValue, - MyUnionEnumValue, - MyUnionIntEnumValue, - MyUnionListValue, - MyUnionMapValue, - MyUnionStructureValue, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionIntEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -290,42 +290,42 @@ class MyUnionAwsJson10Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue((serializers.deserialize( + return MyUnionStringValue$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'booleanValue': - return MyUnionBooleanValue((serializers.deserialize( + return MyUnionBooleanValue$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); case 'numberValue': - return MyUnionNumberValue((serializers.deserialize( + return MyUnionNumberValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'blobValue': - return MyUnionBlobValue((serializers.deserialize( + return MyUnionBlobValue$((serializers.deserialize( value, specifiedType: const FullType(_i2.Uint8List), ) as _i2.Uint8List)); case 'timestampValue': - return MyUnionTimestampValue((serializers.deserialize( + return MyUnionTimestampValue$((serializers.deserialize( value, specifiedType: const FullType(DateTime), ) as DateTime)); case 'enumValue': - return MyUnionEnumValue((serializers.deserialize( + return MyUnionEnumValue$((serializers.deserialize( value, specifiedType: const FullType(_i3.FooEnum), ) as _i3.FooEnum)); case 'intEnumValue': - return MyUnionIntEnumValue((serializers.deserialize( + return MyUnionIntEnumValue$((serializers.deserialize( value, specifiedType: const FullType(_i4.IntegerEnum), ) as _i4.IntegerEnum)); case 'listValue': - return MyUnionListValue._((serializers.deserialize( + return MyUnionListValue$._((serializers.deserialize( value, specifiedType: const FullType( _i6.BuiltList, @@ -333,7 +333,7 @@ class MyUnionAwsJson10Serializer ), ) as _i6.BuiltList)); case 'mapValue': - return MyUnionMapValue._((serializers.deserialize( + return MyUnionMapValue$._((serializers.deserialize( value, specifiedType: const FullType( _i6.BuiltMap, @@ -344,7 +344,7 @@ class MyUnionAwsJson10Serializer ), ) as _i6.BuiltMap)); case 'structureValue': - return MyUnionStructureValue((serializers.deserialize( + return MyUnionStructureValue$((serializers.deserialize( value, specifiedType: const FullType(_i5.GreetingStruct), ) as _i5.GreetingStruct)); @@ -364,42 +364,42 @@ class MyUnionAwsJson10Serializer return [ object.name, switch (object) { - MyUnionStringValue(:final value) => serializers.serialize( + MyUnionStringValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - MyUnionBooleanValue(:final value) => serializers.serialize( + MyUnionBooleanValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - MyUnionNumberValue(:final value) => serializers.serialize( + MyUnionNumberValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - MyUnionBlobValue(:final value) => serializers.serialize( + MyUnionBlobValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Uint8List), ), - MyUnionTimestampValue(:final value) => serializers.serialize( + MyUnionTimestampValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(DateTime), ), - MyUnionEnumValue(:final value) => serializers.serialize( + MyUnionEnumValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.FooEnum), ), - MyUnionIntEnumValue(:final value) => serializers.serialize( + MyUnionIntEnumValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i4.IntegerEnum), ), - MyUnionListValue(:final value) => serializers.serialize( + MyUnionListValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i6.BuiltList, [FullType(String)], ), ), - MyUnionMapValue(:final value) => serializers.serialize( + MyUnionMapValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i6.BuiltMap, @@ -409,11 +409,11 @@ class MyUnionAwsJson10Serializer ], ), ), - MyUnionStructureValue(:final value) => serializers.serialize( + MyUnionStructureValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i5.GreetingStruct), ), - MyUnionSdkUnknown(:final value) => value, + MyUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/my_union.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/my_union.dart index 801376ba0a..9993ed9eed 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/my_union.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/my_union.dart @@ -17,30 +17,30 @@ import 'package:smithy/smithy.dart' as _i1; sealed class MyUnion extends _i1.SmithyUnion { const MyUnion._(); - const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue; + const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue$; - const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue; + const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue$; - const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue; + const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue$; - const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue; + const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue$; const factory MyUnion.timestampValue(DateTime timestampValue) = - MyUnionTimestampValue; + MyUnionTimestampValue$; - const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue; + const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue$; - factory MyUnion.listValue(List listValue) = MyUnionListValue; + factory MyUnion.listValue(List listValue) = MyUnionListValue$; - factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue; + factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue$; factory MyUnion.structureValue({String? hi}) => - MyUnionStructureValue(_i4.GreetingStruct(hi: hi)); + MyUnionStructureValue$(_i4.GreetingStruct(hi: hi)); const factory MyUnion.sdkUnknown( String name, Object value, - ) = MyUnionSdkUnknown; + ) = MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ MyUnionAwsJson11Serializer() @@ -126,8 +126,8 @@ sealed class MyUnion extends _i1.SmithyUnion { } } -final class MyUnionStringValue extends MyUnion { - const MyUnionStringValue(this.stringValue) : super._(); +final class MyUnionStringValue$ extends MyUnion { + const MyUnionStringValue$(this.stringValue) : super._(); @override final String stringValue; @@ -136,8 +136,8 @@ final class MyUnionStringValue extends MyUnion { String get name => 'stringValue'; } -final class MyUnionBooleanValue extends MyUnion { - const MyUnionBooleanValue(this.booleanValue) : super._(); +final class MyUnionBooleanValue$ extends MyUnion { + const MyUnionBooleanValue$(this.booleanValue) : super._(); @override final bool booleanValue; @@ -146,8 +146,8 @@ final class MyUnionBooleanValue extends MyUnion { String get name => 'booleanValue'; } -final class MyUnionNumberValue extends MyUnion { - const MyUnionNumberValue(this.numberValue) : super._(); +final class MyUnionNumberValue$ extends MyUnion { + const MyUnionNumberValue$(this.numberValue) : super._(); @override final int numberValue; @@ -156,8 +156,8 @@ final class MyUnionNumberValue extends MyUnion { String get name => 'numberValue'; } -final class MyUnionBlobValue extends MyUnion { - const MyUnionBlobValue(this.blobValue) : super._(); +final class MyUnionBlobValue$ extends MyUnion { + const MyUnionBlobValue$(this.blobValue) : super._(); @override final _i2.Uint8List blobValue; @@ -166,8 +166,8 @@ final class MyUnionBlobValue extends MyUnion { String get name => 'blobValue'; } -final class MyUnionTimestampValue extends MyUnion { - const MyUnionTimestampValue(this.timestampValue) : super._(); +final class MyUnionTimestampValue$ extends MyUnion { + const MyUnionTimestampValue$(this.timestampValue) : super._(); @override final DateTime timestampValue; @@ -176,8 +176,8 @@ final class MyUnionTimestampValue extends MyUnion { String get name => 'timestampValue'; } -final class MyUnionEnumValue extends MyUnion { - const MyUnionEnumValue(this.enumValue) : super._(); +final class MyUnionEnumValue$ extends MyUnion { + const MyUnionEnumValue$(this.enumValue) : super._(); @override final _i3.FooEnum enumValue; @@ -186,10 +186,10 @@ final class MyUnionEnumValue extends MyUnion { String get name => 'enumValue'; } -final class MyUnionListValue extends MyUnion { - MyUnionListValue(List listValue) : this._(_i5.BuiltList(listValue)); +final class MyUnionListValue$ extends MyUnion { + MyUnionListValue$(List listValue) : this._(_i5.BuiltList(listValue)); - const MyUnionListValue._(this.listValue) : super._(); + const MyUnionListValue$._(this.listValue) : super._(); @override final _i5.BuiltList listValue; @@ -198,11 +198,11 @@ final class MyUnionListValue extends MyUnion { String get name => 'listValue'; } -final class MyUnionMapValue extends MyUnion { - MyUnionMapValue(Map mapValue) +final class MyUnionMapValue$ extends MyUnion { + MyUnionMapValue$(Map mapValue) : this._(_i5.BuiltMap(mapValue)); - const MyUnionMapValue._(this.mapValue) : super._(); + const MyUnionMapValue$._(this.mapValue) : super._(); @override final _i5.BuiltMap mapValue; @@ -211,8 +211,8 @@ final class MyUnionMapValue extends MyUnion { String get name => 'mapValue'; } -final class MyUnionStructureValue extends MyUnion { - const MyUnionStructureValue(this.structureValue) : super._(); +final class MyUnionStructureValue$ extends MyUnion { + const MyUnionStructureValue$(this.structureValue) : super._(); @override final _i4.GreetingStruct structureValue; @@ -221,8 +221,8 @@ final class MyUnionStructureValue extends MyUnion { String get name => 'structureValue'; } -final class MyUnionSdkUnknown extends MyUnion { - const MyUnionSdkUnknown( +final class MyUnionSdkUnknown$ extends MyUnion { + const MyUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -241,15 +241,15 @@ class MyUnionAwsJson11Serializer @override Iterable get types => const [ MyUnion, - MyUnionStringValue, - MyUnionBooleanValue, - MyUnionNumberValue, - MyUnionBlobValue, - MyUnionTimestampValue, - MyUnionEnumValue, - MyUnionListValue, - MyUnionMapValue, - MyUnionStructureValue, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -267,37 +267,37 @@ class MyUnionAwsJson11Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue((serializers.deserialize( + return MyUnionStringValue$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'booleanValue': - return MyUnionBooleanValue((serializers.deserialize( + return MyUnionBooleanValue$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); case 'numberValue': - return MyUnionNumberValue((serializers.deserialize( + return MyUnionNumberValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'blobValue': - return MyUnionBlobValue((serializers.deserialize( + return MyUnionBlobValue$((serializers.deserialize( value, specifiedType: const FullType(_i2.Uint8List), ) as _i2.Uint8List)); case 'timestampValue': - return MyUnionTimestampValue((serializers.deserialize( + return MyUnionTimestampValue$((serializers.deserialize( value, specifiedType: const FullType(DateTime), ) as DateTime)); case 'enumValue': - return MyUnionEnumValue((serializers.deserialize( + return MyUnionEnumValue$((serializers.deserialize( value, specifiedType: const FullType(_i3.FooEnum), ) as _i3.FooEnum)); case 'listValue': - return MyUnionListValue._((serializers.deserialize( + return MyUnionListValue$._((serializers.deserialize( value, specifiedType: const FullType( _i5.BuiltList, @@ -305,7 +305,7 @@ class MyUnionAwsJson11Serializer ), ) as _i5.BuiltList)); case 'mapValue': - return MyUnionMapValue._((serializers.deserialize( + return MyUnionMapValue$._((serializers.deserialize( value, specifiedType: const FullType( _i5.BuiltMap, @@ -316,7 +316,7 @@ class MyUnionAwsJson11Serializer ), ) as _i5.BuiltMap)); case 'structureValue': - return MyUnionStructureValue((serializers.deserialize( + return MyUnionStructureValue$((serializers.deserialize( value, specifiedType: const FullType(_i4.GreetingStruct), ) as _i4.GreetingStruct)); @@ -336,38 +336,38 @@ class MyUnionAwsJson11Serializer return [ object.name, switch (object) { - MyUnionStringValue(:final value) => serializers.serialize( + MyUnionStringValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - MyUnionBooleanValue(:final value) => serializers.serialize( + MyUnionBooleanValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - MyUnionNumberValue(:final value) => serializers.serialize( + MyUnionNumberValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - MyUnionBlobValue(:final value) => serializers.serialize( + MyUnionBlobValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Uint8List), ), - MyUnionTimestampValue(:final value) => serializers.serialize( + MyUnionTimestampValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(DateTime), ), - MyUnionEnumValue(:final value) => serializers.serialize( + MyUnionEnumValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.FooEnum), ), - MyUnionListValue(:final value) => serializers.serialize( + MyUnionListValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i5.BuiltList, [FullType(String)], ), ), - MyUnionMapValue(:final value) => serializers.serialize( + MyUnionMapValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i5.BuiltMap, @@ -377,11 +377,11 @@ class MyUnionAwsJson11Serializer ], ), ), - MyUnionStructureValue(:final value) => serializers.serialize( + MyUnionStructureValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i4.GreetingStruct), ), - MyUnionSdkUnknown(:final value) => value, + MyUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/my_union.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/my_union.dart index 9f77670fce..76ca27f60f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/my_union.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/my_union.dart @@ -20,33 +20,34 @@ import 'package:smithy/smithy.dart' as _i1; sealed class MyUnion extends _i1.SmithyUnion { const MyUnion._(); - const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue; + const factory MyUnion.stringValue(String stringValue) = MyUnionStringValue$; - const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue; + const factory MyUnion.booleanValue(bool booleanValue) = MyUnionBooleanValue$; - const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue; + const factory MyUnion.numberValue(int numberValue) = MyUnionNumberValue$; - const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue; + const factory MyUnion.blobValue(_i2.Uint8List blobValue) = MyUnionBlobValue$; const factory MyUnion.timestampValue(DateTime timestampValue) = - MyUnionTimestampValue; + MyUnionTimestampValue$; - const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue; + const factory MyUnion.enumValue(_i3.FooEnum enumValue) = MyUnionEnumValue$; - factory MyUnion.listValue(List listValue) = MyUnionListValue; + factory MyUnion.listValue(List listValue) = MyUnionListValue$; - factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue; + factory MyUnion.mapValue(Map mapValue) = MyUnionMapValue$; factory MyUnion.structureValue({String? hi}) => - MyUnionStructureValue(_i4.GreetingStruct(hi: hi)); + MyUnionStructureValue$(_i4.GreetingStruct(hi: hi)); factory MyUnion.renamedStructureValue({String? salutation}) => - MyUnionRenamedStructureValue(_i5.RenamedGreeting(salutation: salutation)); + MyUnionRenamedStructureValue$( + _i5.RenamedGreeting(salutation: salutation)); const factory MyUnion.sdkUnknown( String name, Object value, - ) = MyUnionSdkUnknown; + ) = MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ MyUnionRestJson1Serializer() @@ -140,8 +141,8 @@ sealed class MyUnion extends _i1.SmithyUnion { } } -final class MyUnionStringValue extends MyUnion { - const MyUnionStringValue(this.stringValue) : super._(); +final class MyUnionStringValue$ extends MyUnion { + const MyUnionStringValue$(this.stringValue) : super._(); @override final String stringValue; @@ -150,8 +151,8 @@ final class MyUnionStringValue extends MyUnion { String get name => 'stringValue'; } -final class MyUnionBooleanValue extends MyUnion { - const MyUnionBooleanValue(this.booleanValue) : super._(); +final class MyUnionBooleanValue$ extends MyUnion { + const MyUnionBooleanValue$(this.booleanValue) : super._(); @override final bool booleanValue; @@ -160,8 +161,8 @@ final class MyUnionBooleanValue extends MyUnion { String get name => 'booleanValue'; } -final class MyUnionNumberValue extends MyUnion { - const MyUnionNumberValue(this.numberValue) : super._(); +final class MyUnionNumberValue$ extends MyUnion { + const MyUnionNumberValue$(this.numberValue) : super._(); @override final int numberValue; @@ -170,8 +171,8 @@ final class MyUnionNumberValue extends MyUnion { String get name => 'numberValue'; } -final class MyUnionBlobValue extends MyUnion { - const MyUnionBlobValue(this.blobValue) : super._(); +final class MyUnionBlobValue$ extends MyUnion { + const MyUnionBlobValue$(this.blobValue) : super._(); @override final _i2.Uint8List blobValue; @@ -180,8 +181,8 @@ final class MyUnionBlobValue extends MyUnion { String get name => 'blobValue'; } -final class MyUnionTimestampValue extends MyUnion { - const MyUnionTimestampValue(this.timestampValue) : super._(); +final class MyUnionTimestampValue$ extends MyUnion { + const MyUnionTimestampValue$(this.timestampValue) : super._(); @override final DateTime timestampValue; @@ -190,8 +191,8 @@ final class MyUnionTimestampValue extends MyUnion { String get name => 'timestampValue'; } -final class MyUnionEnumValue extends MyUnion { - const MyUnionEnumValue(this.enumValue) : super._(); +final class MyUnionEnumValue$ extends MyUnion { + const MyUnionEnumValue$(this.enumValue) : super._(); @override final _i3.FooEnum enumValue; @@ -200,10 +201,10 @@ final class MyUnionEnumValue extends MyUnion { String get name => 'enumValue'; } -final class MyUnionListValue extends MyUnion { - MyUnionListValue(List listValue) : this._(_i6.BuiltList(listValue)); +final class MyUnionListValue$ extends MyUnion { + MyUnionListValue$(List listValue) : this._(_i6.BuiltList(listValue)); - const MyUnionListValue._(this.listValue) : super._(); + const MyUnionListValue$._(this.listValue) : super._(); @override final _i6.BuiltList listValue; @@ -212,11 +213,11 @@ final class MyUnionListValue extends MyUnion { String get name => 'listValue'; } -final class MyUnionMapValue extends MyUnion { - MyUnionMapValue(Map mapValue) +final class MyUnionMapValue$ extends MyUnion { + MyUnionMapValue$(Map mapValue) : this._(_i6.BuiltMap(mapValue)); - const MyUnionMapValue._(this.mapValue) : super._(); + const MyUnionMapValue$._(this.mapValue) : super._(); @override final _i6.BuiltMap mapValue; @@ -225,8 +226,8 @@ final class MyUnionMapValue extends MyUnion { String get name => 'mapValue'; } -final class MyUnionStructureValue extends MyUnion { - const MyUnionStructureValue(this.structureValue) : super._(); +final class MyUnionStructureValue$ extends MyUnion { + const MyUnionStructureValue$(this.structureValue) : super._(); @override final _i4.GreetingStruct structureValue; @@ -235,8 +236,8 @@ final class MyUnionStructureValue extends MyUnion { String get name => 'structureValue'; } -final class MyUnionRenamedStructureValue extends MyUnion { - const MyUnionRenamedStructureValue(this.renamedStructureValue) : super._(); +final class MyUnionRenamedStructureValue$ extends MyUnion { + const MyUnionRenamedStructureValue$(this.renamedStructureValue) : super._(); @override final _i5.RenamedGreeting renamedStructureValue; @@ -245,8 +246,8 @@ final class MyUnionRenamedStructureValue extends MyUnion { String get name => 'renamedStructureValue'; } -final class MyUnionSdkUnknown extends MyUnion { - const MyUnionSdkUnknown( +final class MyUnionSdkUnknown$ extends MyUnion { + const MyUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -265,16 +266,16 @@ class MyUnionRestJson1Serializer @override Iterable get types => const [ MyUnion, - MyUnionStringValue, - MyUnionBooleanValue, - MyUnionNumberValue, - MyUnionBlobValue, - MyUnionTimestampValue, - MyUnionEnumValue, - MyUnionListValue, - MyUnionMapValue, - MyUnionStructureValue, - MyUnionRenamedStructureValue, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, + MyUnionRenamedStructureValue$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -292,37 +293,37 @@ class MyUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue((serializers.deserialize( + return MyUnionStringValue$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'booleanValue': - return MyUnionBooleanValue((serializers.deserialize( + return MyUnionBooleanValue$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); case 'numberValue': - return MyUnionNumberValue((serializers.deserialize( + return MyUnionNumberValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'blobValue': - return MyUnionBlobValue((serializers.deserialize( + return MyUnionBlobValue$((serializers.deserialize( value, specifiedType: const FullType(_i2.Uint8List), ) as _i2.Uint8List)); case 'timestampValue': - return MyUnionTimestampValue((serializers.deserialize( + return MyUnionTimestampValue$((serializers.deserialize( value, specifiedType: const FullType(DateTime), ) as DateTime)); case 'enumValue': - return MyUnionEnumValue((serializers.deserialize( + return MyUnionEnumValue$((serializers.deserialize( value, specifiedType: const FullType(_i3.FooEnum), ) as _i3.FooEnum)); case 'listValue': - return MyUnionListValue._((serializers.deserialize( + return MyUnionListValue$._((serializers.deserialize( value, specifiedType: const FullType( _i6.BuiltList, @@ -330,7 +331,7 @@ class MyUnionRestJson1Serializer ), ) as _i6.BuiltList)); case 'mapValue': - return MyUnionMapValue._((serializers.deserialize( + return MyUnionMapValue$._((serializers.deserialize( value, specifiedType: const FullType( _i6.BuiltMap, @@ -341,12 +342,12 @@ class MyUnionRestJson1Serializer ), ) as _i6.BuiltMap)); case 'structureValue': - return MyUnionStructureValue((serializers.deserialize( + return MyUnionStructureValue$((serializers.deserialize( value, specifiedType: const FullType(_i4.GreetingStruct), ) as _i4.GreetingStruct)); case 'renamedStructureValue': - return MyUnionRenamedStructureValue((serializers.deserialize( + return MyUnionRenamedStructureValue$((serializers.deserialize( value, specifiedType: const FullType(_i5.RenamedGreeting), ) as _i5.RenamedGreeting)); @@ -366,38 +367,38 @@ class MyUnionRestJson1Serializer return [ object.name, switch (object) { - MyUnionStringValue(:final value) => serializers.serialize( + MyUnionStringValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - MyUnionBooleanValue(:final value) => serializers.serialize( + MyUnionBooleanValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - MyUnionNumberValue(:final value) => serializers.serialize( + MyUnionNumberValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - MyUnionBlobValue(:final value) => serializers.serialize( + MyUnionBlobValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Uint8List), ), - MyUnionTimestampValue(:final value) => serializers.serialize( + MyUnionTimestampValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(DateTime), ), - MyUnionEnumValue(:final value) => serializers.serialize( + MyUnionEnumValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.FooEnum), ), - MyUnionListValue(:final value) => serializers.serialize( + MyUnionListValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i6.BuiltList, [FullType(String)], ), ), - MyUnionMapValue(:final value) => serializers.serialize( + MyUnionMapValue$(:final value) => serializers.serialize( value, specifiedType: const FullType( _i6.BuiltMap, @@ -407,15 +408,15 @@ class MyUnionRestJson1Serializer ], ), ), - MyUnionStructureValue(:final value) => serializers.serialize( + MyUnionStructureValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i4.GreetingStruct), ), - MyUnionRenamedStructureValue(:final value) => serializers.serialize( + MyUnionRenamedStructureValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i5.RenamedGreeting), ), - MyUnionSdkUnknown(:final value) => value, + MyUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart index 178d023eb1..15a9ce71d5 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart @@ -10,12 +10,12 @@ import 'package:smithy/smithy.dart' as _i1; sealed class PlayerAction extends _i1.SmithyUnion { const PlayerAction._(); - const factory PlayerAction.quit() = PlayerActionQuit; + const factory PlayerAction.quit() = PlayerActionQuit$; const factory PlayerAction.sdkUnknown( String name, Object value, - ) = PlayerActionSdkUnknown; + ) = PlayerActionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ PlayerActionRestJson1Serializer() @@ -38,8 +38,8 @@ sealed class PlayerAction extends _i1.SmithyUnion { } } -final class PlayerActionQuit extends PlayerAction { - const PlayerActionQuit() : super._(); +final class PlayerActionQuit$ extends PlayerAction { + const PlayerActionQuit$() : super._(); @override String get name => 'quit'; @@ -47,8 +47,8 @@ final class PlayerActionQuit extends PlayerAction { _i1.Unit get quit => const _i1.Unit(); } -final class PlayerActionSdkUnknown extends PlayerAction { - const PlayerActionSdkUnknown( +final class PlayerActionSdkUnknown$ extends PlayerAction { + const PlayerActionSdkUnknown$( this.name, this.value, ) : super._(); @@ -67,7 +67,7 @@ class PlayerActionRestJson1Serializer @override Iterable get types => const [ PlayerAction, - PlayerActionQuit, + PlayerActionQuit$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -85,7 +85,7 @@ class PlayerActionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'quit': - return const PlayerActionQuit(); + return const PlayerActionQuit$(); } return PlayerAction.sdkUnknown( key, @@ -102,11 +102,11 @@ class PlayerActionRestJson1Serializer return [ object.name, switch (object) { - PlayerActionQuit(:final value) => serializers.serialize( + PlayerActionQuit$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i1.Unit), ), - PlayerActionSdkUnknown(:final value) => value, + PlayerActionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_union.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_union.dart index 8c2f2c59f3..3f200516be 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_union.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_union.dart @@ -10,14 +10,14 @@ import 'package:smithy/smithy.dart' as _i1; sealed class SimpleUnion extends _i1.SmithyUnion { const SimpleUnion._(); - const factory SimpleUnion.int$(int int$) = SimpleUnionInt; + const factory SimpleUnion.int$(int int$) = SimpleUnionInt$; - const factory SimpleUnion.string(String string) = SimpleUnionString; + const factory SimpleUnion.string(String string) = SimpleUnionString$; const factory SimpleUnion.sdkUnknown( String name, Object value, - ) = SimpleUnionSdkUnknown; + ) = SimpleUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ SimpleUnionRestJson1Serializer() @@ -46,8 +46,8 @@ sealed class SimpleUnion extends _i1.SmithyUnion { } } -final class SimpleUnionInt extends SimpleUnion { - const SimpleUnionInt(this.int$) : super._(); +final class SimpleUnionInt$ extends SimpleUnion { + const SimpleUnionInt$(this.int$) : super._(); @override final int int$; @@ -56,8 +56,8 @@ final class SimpleUnionInt extends SimpleUnion { String get name => 'int'; } -final class SimpleUnionString extends SimpleUnion { - const SimpleUnionString(this.string) : super._(); +final class SimpleUnionString$ extends SimpleUnion { + const SimpleUnionString$(this.string) : super._(); @override final String string; @@ -66,8 +66,8 @@ final class SimpleUnionString extends SimpleUnion { String get name => 'string'; } -final class SimpleUnionSdkUnknown extends SimpleUnion { - const SimpleUnionSdkUnknown( +final class SimpleUnionSdkUnknown$ extends SimpleUnion { + const SimpleUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -86,8 +86,8 @@ class SimpleUnionRestJson1Serializer @override Iterable get types => const [ SimpleUnion, - SimpleUnionInt, - SimpleUnionString, + SimpleUnionInt$, + SimpleUnionString$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -105,12 +105,12 @@ class SimpleUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'int': - return SimpleUnionInt((serializers.deserialize( + return SimpleUnionInt$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'string': - return SimpleUnionString((serializers.deserialize( + return SimpleUnionString$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); @@ -130,15 +130,15 @@ class SimpleUnionRestJson1Serializer return [ object.name, switch (object) { - SimpleUnionInt(:final value) => serializers.serialize( + SimpleUnionInt$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - SimpleUnionString(:final value) => serializers.serialize( + SimpleUnionString$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - SimpleUnionSdkUnknown(:final value) => value, + SimpleUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart index 083a8d5ecc..778860f01d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart @@ -10,16 +10,16 @@ import 'package:smithy/smithy.dart' as _i1; sealed class UnionWithJsonName extends _i1.SmithyUnion { const UnionWithJsonName._(); - const factory UnionWithJsonName.foo(String foo) = UnionWithJsonNameFoo; + const factory UnionWithJsonName.foo(String foo) = UnionWithJsonNameFoo$; - const factory UnionWithJsonName.bar(String bar) = UnionWithJsonNameBar; + const factory UnionWithJsonName.bar(String bar) = UnionWithJsonNameBar$; - const factory UnionWithJsonName.baz(String baz) = UnionWithJsonNameBaz; + const factory UnionWithJsonName.baz(String baz) = UnionWithJsonNameBaz$; const factory UnionWithJsonName.sdkUnknown( String name, Object value, - ) = UnionWithJsonNameSdkUnknown; + ) = UnionWithJsonNameSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ UnionWithJsonNameRestJson1Serializer() @@ -55,8 +55,8 @@ sealed class UnionWithJsonName extends _i1.SmithyUnion { } } -final class UnionWithJsonNameFoo extends UnionWithJsonName { - const UnionWithJsonNameFoo(this.foo) : super._(); +final class UnionWithJsonNameFoo$ extends UnionWithJsonName { + const UnionWithJsonNameFoo$(this.foo) : super._(); @override final String foo; @@ -65,8 +65,8 @@ final class UnionWithJsonNameFoo extends UnionWithJsonName { String get name => 'foo'; } -final class UnionWithJsonNameBar extends UnionWithJsonName { - const UnionWithJsonNameBar(this.bar) : super._(); +final class UnionWithJsonNameBar$ extends UnionWithJsonName { + const UnionWithJsonNameBar$(this.bar) : super._(); @override final String bar; @@ -75,8 +75,8 @@ final class UnionWithJsonNameBar extends UnionWithJsonName { String get name => 'bar'; } -final class UnionWithJsonNameBaz extends UnionWithJsonName { - const UnionWithJsonNameBaz(this.baz) : super._(); +final class UnionWithJsonNameBaz$ extends UnionWithJsonName { + const UnionWithJsonNameBaz$(this.baz) : super._(); @override final String baz; @@ -85,8 +85,8 @@ final class UnionWithJsonNameBaz extends UnionWithJsonName { String get name => 'baz'; } -final class UnionWithJsonNameSdkUnknown extends UnionWithJsonName { - const UnionWithJsonNameSdkUnknown( +final class UnionWithJsonNameSdkUnknown$ extends UnionWithJsonName { + const UnionWithJsonNameSdkUnknown$( this.name, this.value, ) : super._(); @@ -105,9 +105,9 @@ class UnionWithJsonNameRestJson1Serializer @override Iterable get types => const [ UnionWithJsonName, - UnionWithJsonNameFoo, - UnionWithJsonNameBar, - UnionWithJsonNameBaz, + UnionWithJsonNameFoo$, + UnionWithJsonNameBar$, + UnionWithJsonNameBaz$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -125,17 +125,17 @@ class UnionWithJsonNameRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'FOO': - return UnionWithJsonNameFoo((serializers.deserialize( + return UnionWithJsonNameFoo$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'bar': - return UnionWithJsonNameBar((serializers.deserialize( + return UnionWithJsonNameBar$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case '_baz': - return UnionWithJsonNameBaz((serializers.deserialize( + return UnionWithJsonNameBaz$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); @@ -159,19 +159,19 @@ class UnionWithJsonNameRestJson1Serializer return [ renames[object.name] ?? object.name, switch (object) { - UnionWithJsonNameFoo(:final value) => serializers.serialize( + UnionWithJsonNameFoo$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - UnionWithJsonNameBar(:final value) => serializers.serialize( + UnionWithJsonNameBar$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - UnionWithJsonNameBaz(:final value) => serializers.serialize( + UnionWithJsonNameBaz$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - UnionWithJsonNameSdkUnknown(:final value) => value, + UnionWithJsonNameSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart index 77181f1416..2f4d289063 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart @@ -12,14 +12,14 @@ import 'package:smithy/smithy.dart' as _i1; sealed class EnumUnion extends _i1.SmithyUnion { const EnumUnion._(); - const factory EnumUnion.first(_i2.EnumString first) = EnumUnionFirst; + const factory EnumUnion.first(_i2.EnumString first) = EnumUnionFirst$; - const factory EnumUnion.second(_i2.EnumString second) = EnumUnionSecond; + const factory EnumUnion.second(_i2.EnumString second) = EnumUnionSecond$; const factory EnumUnion.sdkUnknown( String name, Object value, - ) = EnumUnionSdkUnknown; + ) = EnumUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ EnumUnionRestJson1Serializer() @@ -48,8 +48,8 @@ sealed class EnumUnion extends _i1.SmithyUnion { } } -final class EnumUnionFirst extends EnumUnion { - const EnumUnionFirst(this.first) : super._(); +final class EnumUnionFirst$ extends EnumUnion { + const EnumUnionFirst$(this.first) : super._(); @override final _i2.EnumString first; @@ -58,8 +58,8 @@ final class EnumUnionFirst extends EnumUnion { String get name => 'first'; } -final class EnumUnionSecond extends EnumUnion { - const EnumUnionSecond(this.second) : super._(); +final class EnumUnionSecond$ extends EnumUnion { + const EnumUnionSecond$(this.second) : super._(); @override final _i2.EnumString second; @@ -68,8 +68,8 @@ final class EnumUnionSecond extends EnumUnion { String get name => 'second'; } -final class EnumUnionSdkUnknown extends EnumUnion { - const EnumUnionSdkUnknown( +final class EnumUnionSdkUnknown$ extends EnumUnion { + const EnumUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -88,8 +88,8 @@ class EnumUnionRestJson1Serializer @override Iterable get types => const [ EnumUnion, - EnumUnionFirst, - EnumUnionSecond, + EnumUnionFirst$, + EnumUnionSecond$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -107,12 +107,12 @@ class EnumUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return EnumUnionFirst((serializers.deserialize( + return EnumUnionFirst$((serializers.deserialize( value, specifiedType: const FullType(_i2.EnumString), ) as _i2.EnumString)); case 'second': - return EnumUnionSecond((serializers.deserialize( + return EnumUnionSecond$((serializers.deserialize( value, specifiedType: const FullType(_i2.EnumString), ) as _i2.EnumString)); @@ -132,15 +132,15 @@ class EnumUnionRestJson1Serializer return [ object.name, switch (object) { - EnumUnionFirst(:final value) => serializers.serialize( + EnumUnionFirst$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.EnumString), ), - EnumUnionSecond(:final value) => serializers.serialize( + EnumUnionSecond$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.EnumString), ), - EnumUnionSdkUnknown(:final value) => value, + EnumUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart index a7af97b160..5c51fe918a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart @@ -10,14 +10,14 @@ import 'package:smithy/smithy.dart' as _i1; sealed class FooUnion extends _i1.SmithyUnion { const FooUnion._(); - const factory FooUnion.string(String string) = FooUnionString; + const factory FooUnion.string(String string) = FooUnionString$; - const factory FooUnion.integer(int integer) = FooUnionInteger; + const factory FooUnion.integer(int integer) = FooUnionInteger$; const factory FooUnion.sdkUnknown( String name, Object value, - ) = FooUnionSdkUnknown; + ) = FooUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ FooUnionRestJson1Serializer() @@ -46,8 +46,8 @@ sealed class FooUnion extends _i1.SmithyUnion { } } -final class FooUnionString extends FooUnion { - const FooUnionString(this.string) : super._(); +final class FooUnionString$ extends FooUnion { + const FooUnionString$(this.string) : super._(); @override final String string; @@ -56,8 +56,8 @@ final class FooUnionString extends FooUnion { String get name => 'string'; } -final class FooUnionInteger extends FooUnion { - const FooUnionInteger(this.integer) : super._(); +final class FooUnionInteger$ extends FooUnion { + const FooUnionInteger$(this.integer) : super._(); @override final int integer; @@ -66,8 +66,8 @@ final class FooUnionInteger extends FooUnion { String get name => 'integer'; } -final class FooUnionSdkUnknown extends FooUnion { - const FooUnionSdkUnknown( +final class FooUnionSdkUnknown$ extends FooUnion { + const FooUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -86,8 +86,8 @@ class FooUnionRestJson1Serializer @override Iterable get types => const [ FooUnion, - FooUnionString, - FooUnionInteger, + FooUnionString$, + FooUnionInteger$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -105,12 +105,12 @@ class FooUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return FooUnionString((serializers.deserialize( + return FooUnionString$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'integer': - return FooUnionInteger((serializers.deserialize( + return FooUnionInteger$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); @@ -130,15 +130,15 @@ class FooUnionRestJson1Serializer return [ object.name, switch (object) { - FooUnionString(:final value) => serializers.serialize( + FooUnionString$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - FooUnionInteger(:final value) => serializers.serialize( + FooUnionInteger$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - FooUnionSdkUnknown(:final value) => value, + FooUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart index 7449e10c36..12f0d8f5bb 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart @@ -10,14 +10,14 @@ import 'package:smithy/smithy.dart' as _i1; sealed class PatternUnion extends _i1.SmithyUnion { const PatternUnion._(); - const factory PatternUnion.first(String first) = PatternUnionFirst; + const factory PatternUnion.first(String first) = PatternUnionFirst$; - const factory PatternUnion.second(String second) = PatternUnionSecond; + const factory PatternUnion.second(String second) = PatternUnionSecond$; const factory PatternUnion.sdkUnknown( String name, Object value, - ) = PatternUnionSdkUnknown; + ) = PatternUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ PatternUnionRestJson1Serializer() @@ -46,8 +46,8 @@ sealed class PatternUnion extends _i1.SmithyUnion { } } -final class PatternUnionFirst extends PatternUnion { - const PatternUnionFirst(this.first) : super._(); +final class PatternUnionFirst$ extends PatternUnion { + const PatternUnionFirst$(this.first) : super._(); @override final String first; @@ -56,8 +56,8 @@ final class PatternUnionFirst extends PatternUnion { String get name => 'first'; } -final class PatternUnionSecond extends PatternUnion { - const PatternUnionSecond(this.second) : super._(); +final class PatternUnionSecond$ extends PatternUnion { + const PatternUnionSecond$(this.second) : super._(); @override final String second; @@ -66,8 +66,8 @@ final class PatternUnionSecond extends PatternUnion { String get name => 'second'; } -final class PatternUnionSdkUnknown extends PatternUnion { - const PatternUnionSdkUnknown( +final class PatternUnionSdkUnknown$ extends PatternUnion { + const PatternUnionSdkUnknown$( this.name, this.value, ) : super._(); @@ -86,8 +86,8 @@ class PatternUnionRestJson1Serializer @override Iterable get types => const [ PatternUnion, - PatternUnionFirst, - PatternUnionSecond, + PatternUnionFirst$, + PatternUnionSecond$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -105,12 +105,12 @@ class PatternUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return PatternUnionFirst((serializers.deserialize( + return PatternUnionFirst$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'second': - return PatternUnionSecond((serializers.deserialize( + return PatternUnionSecond$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); @@ -130,15 +130,15 @@ class PatternUnionRestJson1Serializer return [ object.name, switch (object) { - PatternUnionFirst(:final value) => serializers.serialize( + PatternUnionFirst$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - PatternUnionSecond(:final value) => serializers.serialize( + PatternUnionSecond$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - PatternUnionSdkUnknown(:final value) => value, + PatternUnionSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart index 6141601764..7894f5b119 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart @@ -12,15 +12,15 @@ sealed class PatternUnionOverride const PatternUnionOverride._(); const factory PatternUnionOverride.first(String first) = - PatternUnionOverrideFirst; + PatternUnionOverrideFirst$; const factory PatternUnionOverride.second(String second) = - PatternUnionOverrideSecond; + PatternUnionOverrideSecond$; const factory PatternUnionOverride.sdkUnknown( String name, Object value, - ) = PatternUnionOverrideSdkUnknown; + ) = PatternUnionOverrideSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ PatternUnionOverrideRestJson1Serializer() @@ -49,8 +49,8 @@ sealed class PatternUnionOverride } } -final class PatternUnionOverrideFirst extends PatternUnionOverride { - const PatternUnionOverrideFirst(this.first) : super._(); +final class PatternUnionOverrideFirst$ extends PatternUnionOverride { + const PatternUnionOverrideFirst$(this.first) : super._(); @override final String first; @@ -59,8 +59,8 @@ final class PatternUnionOverrideFirst extends PatternUnionOverride { String get name => 'first'; } -final class PatternUnionOverrideSecond extends PatternUnionOverride { - const PatternUnionOverrideSecond(this.second) : super._(); +final class PatternUnionOverrideSecond$ extends PatternUnionOverride { + const PatternUnionOverrideSecond$(this.second) : super._(); @override final String second; @@ -69,8 +69,8 @@ final class PatternUnionOverrideSecond extends PatternUnionOverride { String get name => 'second'; } -final class PatternUnionOverrideSdkUnknown extends PatternUnionOverride { - const PatternUnionOverrideSdkUnknown( +final class PatternUnionOverrideSdkUnknown$ extends PatternUnionOverride { + const PatternUnionOverrideSdkUnknown$( this.name, this.value, ) : super._(); @@ -90,8 +90,8 @@ class PatternUnionOverrideRestJson1Serializer @override Iterable get types => const [ PatternUnionOverride, - PatternUnionOverrideFirst, - PatternUnionOverrideSecond, + PatternUnionOverrideFirst$, + PatternUnionOverrideSecond$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -109,12 +109,12 @@ class PatternUnionOverrideRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return PatternUnionOverrideFirst((serializers.deserialize( + return PatternUnionOverrideFirst$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'second': - return PatternUnionOverrideSecond((serializers.deserialize( + return PatternUnionOverrideSecond$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); @@ -134,15 +134,15 @@ class PatternUnionOverrideRestJson1Serializer return [ object.name, switch (object) { - PatternUnionOverrideFirst(:final value) => serializers.serialize( + PatternUnionOverrideFirst$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - PatternUnionOverrideSecond(:final value) => serializers.serialize( + PatternUnionOverrideSecond$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - PatternUnionOverrideSdkUnknown(:final value) => value, + PatternUnionOverrideSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart index 649e988f3c..afdb07b139 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart @@ -15,15 +15,15 @@ sealed class RecursiveUnionOne extends _i1.SmithyUnion { const RecursiveUnionOne._(); const factory RecursiveUnionOne.string(_i2.RecursiveEnumString string) = - RecursiveUnionOneString; + RecursiveUnionOneString$; const factory RecursiveUnionOne.union(_i3.RecursiveUnionTwo union) = - RecursiveUnionOneUnion; + RecursiveUnionOneUnion$; const factory RecursiveUnionOne.sdkUnknown( String name, Object value, - ) = RecursiveUnionOneSdkUnknown; + ) = RecursiveUnionOneSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ RecursiveUnionOneRestJson1Serializer() @@ -52,8 +52,8 @@ sealed class RecursiveUnionOne extends _i1.SmithyUnion { } } -final class RecursiveUnionOneString extends RecursiveUnionOne { - const RecursiveUnionOneString(this.string) : super._(); +final class RecursiveUnionOneString$ extends RecursiveUnionOne { + const RecursiveUnionOneString$(this.string) : super._(); @override final _i2.RecursiveEnumString string; @@ -62,8 +62,8 @@ final class RecursiveUnionOneString extends RecursiveUnionOne { String get name => 'string'; } -final class RecursiveUnionOneUnion extends RecursiveUnionOne { - const RecursiveUnionOneUnion(this.union) : super._(); +final class RecursiveUnionOneUnion$ extends RecursiveUnionOne { + const RecursiveUnionOneUnion$(this.union) : super._(); @override final _i3.RecursiveUnionTwo union; @@ -72,8 +72,8 @@ final class RecursiveUnionOneUnion extends RecursiveUnionOne { String get name => 'union'; } -final class RecursiveUnionOneSdkUnknown extends RecursiveUnionOne { - const RecursiveUnionOneSdkUnknown( +final class RecursiveUnionOneSdkUnknown$ extends RecursiveUnionOne { + const RecursiveUnionOneSdkUnknown$( this.name, this.value, ) : super._(); @@ -92,8 +92,8 @@ class RecursiveUnionOneRestJson1Serializer @override Iterable get types => const [ RecursiveUnionOne, - RecursiveUnionOneString, - RecursiveUnionOneUnion, + RecursiveUnionOneString$, + RecursiveUnionOneUnion$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -111,12 +111,12 @@ class RecursiveUnionOneRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return RecursiveUnionOneString((serializers.deserialize( + return RecursiveUnionOneString$((serializers.deserialize( value, specifiedType: const FullType(_i2.RecursiveEnumString), ) as _i2.RecursiveEnumString)); case 'union': - return RecursiveUnionOneUnion((serializers.deserialize( + return RecursiveUnionOneUnion$((serializers.deserialize( value, specifiedType: const FullType(_i3.RecursiveUnionTwo), ) as _i3.RecursiveUnionTwo)); @@ -136,15 +136,15 @@ class RecursiveUnionOneRestJson1Serializer return [ object.name, switch (object) { - RecursiveUnionOneString(:final value) => serializers.serialize( + RecursiveUnionOneString$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.RecursiveEnumString), ), - RecursiveUnionOneUnion(:final value) => serializers.serialize( + RecursiveUnionOneUnion$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.RecursiveUnionTwo), ), - RecursiveUnionOneSdkUnknown(:final value) => value, + RecursiveUnionOneSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart index b1055c06bb..2336aadc83 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart @@ -15,15 +15,15 @@ sealed class RecursiveUnionTwo extends _i1.SmithyUnion { const RecursiveUnionTwo._(); const factory RecursiveUnionTwo.string(_i2.RecursiveEnumString string) = - RecursiveUnionTwoString; + RecursiveUnionTwoString$; const factory RecursiveUnionTwo.union(_i3.RecursiveUnionOne union) = - RecursiveUnionTwoUnion; + RecursiveUnionTwoUnion$; const factory RecursiveUnionTwo.sdkUnknown( String name, Object value, - ) = RecursiveUnionTwoSdkUnknown; + ) = RecursiveUnionTwoSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ RecursiveUnionTwoRestJson1Serializer() @@ -52,8 +52,8 @@ sealed class RecursiveUnionTwo extends _i1.SmithyUnion { } } -final class RecursiveUnionTwoString extends RecursiveUnionTwo { - const RecursiveUnionTwoString(this.string) : super._(); +final class RecursiveUnionTwoString$ extends RecursiveUnionTwo { + const RecursiveUnionTwoString$(this.string) : super._(); @override final _i2.RecursiveEnumString string; @@ -62,8 +62,8 @@ final class RecursiveUnionTwoString extends RecursiveUnionTwo { String get name => 'string'; } -final class RecursiveUnionTwoUnion extends RecursiveUnionTwo { - const RecursiveUnionTwoUnion(this.union) : super._(); +final class RecursiveUnionTwoUnion$ extends RecursiveUnionTwo { + const RecursiveUnionTwoUnion$(this.union) : super._(); @override final _i3.RecursiveUnionOne union; @@ -72,8 +72,8 @@ final class RecursiveUnionTwoUnion extends RecursiveUnionTwo { String get name => 'union'; } -final class RecursiveUnionTwoSdkUnknown extends RecursiveUnionTwo { - const RecursiveUnionTwoSdkUnknown( +final class RecursiveUnionTwoSdkUnknown$ extends RecursiveUnionTwo { + const RecursiveUnionTwoSdkUnknown$( this.name, this.value, ) : super._(); @@ -92,8 +92,8 @@ class RecursiveUnionTwoRestJson1Serializer @override Iterable get types => const [ RecursiveUnionTwo, - RecursiveUnionTwoString, - RecursiveUnionTwoUnion, + RecursiveUnionTwoString$, + RecursiveUnionTwoUnion$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -111,12 +111,12 @@ class RecursiveUnionTwoRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return RecursiveUnionTwoString((serializers.deserialize( + return RecursiveUnionTwoString$((serializers.deserialize( value, specifiedType: const FullType(_i2.RecursiveEnumString), ) as _i2.RecursiveEnumString)); case 'union': - return RecursiveUnionTwoUnion((serializers.deserialize( + return RecursiveUnionTwoUnion$((serializers.deserialize( value, specifiedType: const FullType(_i3.RecursiveUnionOne), ) as _i3.RecursiveUnionOne)); @@ -136,15 +136,15 @@ class RecursiveUnionTwoRestJson1Serializer return [ object.name, switch (object) { - RecursiveUnionTwoString(:final value) => serializers.serialize( + RecursiveUnionTwoString$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.RecursiveEnumString), ), - RecursiveUnionTwoUnion(:final value) => serializers.serialize( + RecursiveUnionTwoUnion$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.RecursiveUnionOne), ), - RecursiveUnionTwoSdkUnknown(:final value) => value, + RecursiveUnionTwoSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart index e3e9a9a550..addcc394e2 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart @@ -14,30 +14,31 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { const XmlUnionShape._(); const factory XmlUnionShape.stringValue(String stringValue) = - XmlUnionShapeStringValue; + XmlUnionShapeStringValue$; const factory XmlUnionShape.booleanValue(bool booleanValue) = - XmlUnionShapeBooleanValue; + XmlUnionShapeBooleanValue$; - const factory XmlUnionShape.byteValue(int byteValue) = XmlUnionShapeByteValue; + const factory XmlUnionShape.byteValue(int byteValue) = + XmlUnionShapeByteValue$; const factory XmlUnionShape.shortValue(int shortValue) = - XmlUnionShapeShortValue; + XmlUnionShapeShortValue$; const factory XmlUnionShape.integerValue(int integerValue) = - XmlUnionShapeIntegerValue; + XmlUnionShapeIntegerValue$; const factory XmlUnionShape.longValue(_i2.Int64 longValue) = - XmlUnionShapeLongValue; + XmlUnionShapeLongValue$; const factory XmlUnionShape.floatValue(double floatValue) = - XmlUnionShapeFloatValue; + XmlUnionShapeFloatValue$; const factory XmlUnionShape.doubleValue(double doubleValue) = - XmlUnionShapeDoubleValue; + XmlUnionShapeDoubleValue$; const factory XmlUnionShape.unionValue(XmlUnionShape unionValue) = - XmlUnionShapeUnionValue; + XmlUnionShapeUnionValue$; factory XmlUnionShape.structValue({ String? stringValue, @@ -49,7 +50,7 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { double? floatValue, double? doubleValue, }) => - XmlUnionShapeStructValue(_i3.XmlNestedUnionStruct( + XmlUnionShapeStructValue$(_i3.XmlNestedUnionStruct( stringValue: stringValue, booleanValue: booleanValue, byteValue: byteValue, @@ -63,7 +64,7 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { const factory XmlUnionShape.sdkUnknown( String name, Object value, - ) = XmlUnionShapeSdkUnknown; + ) = XmlUnionShapeSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ XmlUnionShapeRestXmlSerializer() @@ -157,8 +158,8 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { } } -final class XmlUnionShapeStringValue extends XmlUnionShape { - const XmlUnionShapeStringValue(this.stringValue) : super._(); +final class XmlUnionShapeStringValue$ extends XmlUnionShape { + const XmlUnionShapeStringValue$(this.stringValue) : super._(); @override final String stringValue; @@ -167,8 +168,8 @@ final class XmlUnionShapeStringValue extends XmlUnionShape { String get name => 'stringValue'; } -final class XmlUnionShapeBooleanValue extends XmlUnionShape { - const XmlUnionShapeBooleanValue(this.booleanValue) : super._(); +final class XmlUnionShapeBooleanValue$ extends XmlUnionShape { + const XmlUnionShapeBooleanValue$(this.booleanValue) : super._(); @override final bool booleanValue; @@ -177,8 +178,8 @@ final class XmlUnionShapeBooleanValue extends XmlUnionShape { String get name => 'booleanValue'; } -final class XmlUnionShapeByteValue extends XmlUnionShape { - const XmlUnionShapeByteValue(this.byteValue) : super._(); +final class XmlUnionShapeByteValue$ extends XmlUnionShape { + const XmlUnionShapeByteValue$(this.byteValue) : super._(); @override final int byteValue; @@ -187,8 +188,8 @@ final class XmlUnionShapeByteValue extends XmlUnionShape { String get name => 'byteValue'; } -final class XmlUnionShapeShortValue extends XmlUnionShape { - const XmlUnionShapeShortValue(this.shortValue) : super._(); +final class XmlUnionShapeShortValue$ extends XmlUnionShape { + const XmlUnionShapeShortValue$(this.shortValue) : super._(); @override final int shortValue; @@ -197,8 +198,8 @@ final class XmlUnionShapeShortValue extends XmlUnionShape { String get name => 'shortValue'; } -final class XmlUnionShapeIntegerValue extends XmlUnionShape { - const XmlUnionShapeIntegerValue(this.integerValue) : super._(); +final class XmlUnionShapeIntegerValue$ extends XmlUnionShape { + const XmlUnionShapeIntegerValue$(this.integerValue) : super._(); @override final int integerValue; @@ -207,8 +208,8 @@ final class XmlUnionShapeIntegerValue extends XmlUnionShape { String get name => 'integerValue'; } -final class XmlUnionShapeLongValue extends XmlUnionShape { - const XmlUnionShapeLongValue(this.longValue) : super._(); +final class XmlUnionShapeLongValue$ extends XmlUnionShape { + const XmlUnionShapeLongValue$(this.longValue) : super._(); @override final _i2.Int64 longValue; @@ -217,8 +218,8 @@ final class XmlUnionShapeLongValue extends XmlUnionShape { String get name => 'longValue'; } -final class XmlUnionShapeFloatValue extends XmlUnionShape { - const XmlUnionShapeFloatValue(this.floatValue) : super._(); +final class XmlUnionShapeFloatValue$ extends XmlUnionShape { + const XmlUnionShapeFloatValue$(this.floatValue) : super._(); @override final double floatValue; @@ -227,8 +228,8 @@ final class XmlUnionShapeFloatValue extends XmlUnionShape { String get name => 'floatValue'; } -final class XmlUnionShapeDoubleValue extends XmlUnionShape { - const XmlUnionShapeDoubleValue(this.doubleValue) : super._(); +final class XmlUnionShapeDoubleValue$ extends XmlUnionShape { + const XmlUnionShapeDoubleValue$(this.doubleValue) : super._(); @override final double doubleValue; @@ -237,8 +238,8 @@ final class XmlUnionShapeDoubleValue extends XmlUnionShape { String get name => 'doubleValue'; } -final class XmlUnionShapeUnionValue extends XmlUnionShape { - const XmlUnionShapeUnionValue(this.unionValue) : super._(); +final class XmlUnionShapeUnionValue$ extends XmlUnionShape { + const XmlUnionShapeUnionValue$(this.unionValue) : super._(); @override final XmlUnionShape unionValue; @@ -247,8 +248,8 @@ final class XmlUnionShapeUnionValue extends XmlUnionShape { String get name => 'unionValue'; } -final class XmlUnionShapeStructValue extends XmlUnionShape { - const XmlUnionShapeStructValue(this.structValue) : super._(); +final class XmlUnionShapeStructValue$ extends XmlUnionShape { + const XmlUnionShapeStructValue$(this.structValue) : super._(); @override final _i3.XmlNestedUnionStruct structValue; @@ -257,8 +258,8 @@ final class XmlUnionShapeStructValue extends XmlUnionShape { String get name => 'structValue'; } -final class XmlUnionShapeSdkUnknown extends XmlUnionShape { - const XmlUnionShapeSdkUnknown( +final class XmlUnionShapeSdkUnknown$ extends XmlUnionShape { + const XmlUnionShapeSdkUnknown$( this.name, this.value, ) : super._(); @@ -277,16 +278,16 @@ class XmlUnionShapeRestXmlSerializer @override Iterable get types => const [ XmlUnionShape, - XmlUnionShapeStringValue, - XmlUnionShapeBooleanValue, - XmlUnionShapeByteValue, - XmlUnionShapeShortValue, - XmlUnionShapeIntegerValue, - XmlUnionShapeLongValue, - XmlUnionShapeFloatValue, - XmlUnionShapeDoubleValue, - XmlUnionShapeUnionValue, - XmlUnionShapeStructValue, + XmlUnionShapeStringValue$, + XmlUnionShapeBooleanValue$, + XmlUnionShapeByteValue$, + XmlUnionShapeShortValue$, + XmlUnionShapeIntegerValue$, + XmlUnionShapeLongValue$, + XmlUnionShapeFloatValue$, + XmlUnionShapeDoubleValue$, + XmlUnionShapeUnionValue$, + XmlUnionShapeStructValue$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -304,52 +305,52 @@ class XmlUnionShapeRestXmlSerializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return XmlUnionShapeStringValue((serializers.deserialize( + return XmlUnionShapeStringValue$((serializers.deserialize( value, specifiedType: const FullType(String), ) as String)); case 'booleanValue': - return XmlUnionShapeBooleanValue((serializers.deserialize( + return XmlUnionShapeBooleanValue$((serializers.deserialize( value, specifiedType: const FullType(bool), ) as bool)); case 'byteValue': - return XmlUnionShapeByteValue((serializers.deserialize( + return XmlUnionShapeByteValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'shortValue': - return XmlUnionShapeShortValue((serializers.deserialize( + return XmlUnionShapeShortValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'integerValue': - return XmlUnionShapeIntegerValue((serializers.deserialize( + return XmlUnionShapeIntegerValue$((serializers.deserialize( value, specifiedType: const FullType(int), ) as int)); case 'longValue': - return XmlUnionShapeLongValue((serializers.deserialize( + return XmlUnionShapeLongValue$((serializers.deserialize( value, specifiedType: const FullType(_i2.Int64), ) as _i2.Int64)); case 'floatValue': - return XmlUnionShapeFloatValue((serializers.deserialize( + return XmlUnionShapeFloatValue$((serializers.deserialize( value, specifiedType: const FullType(double), ) as double)); case 'doubleValue': - return XmlUnionShapeDoubleValue((serializers.deserialize( + return XmlUnionShapeDoubleValue$((serializers.deserialize( value, specifiedType: const FullType(double), ) as double)); case 'unionValue': - return XmlUnionShapeUnionValue((serializers.deserialize( + return XmlUnionShapeUnionValue$((serializers.deserialize( value, specifiedType: const FullType(XmlUnionShape), ) as XmlUnionShape)); case 'structValue': - return XmlUnionShapeStructValue((serializers.deserialize( + return XmlUnionShapeStructValue$((serializers.deserialize( value, specifiedType: const FullType(_i3.XmlNestedUnionStruct), ) as _i3.XmlNestedUnionStruct)); @@ -369,47 +370,47 @@ class XmlUnionShapeRestXmlSerializer return [ object.name, switch (object) { - XmlUnionShapeStringValue(:final value) => serializers.serialize( + XmlUnionShapeStringValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(String), ), - XmlUnionShapeBooleanValue(:final value) => serializers.serialize( + XmlUnionShapeBooleanValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(bool), ), - XmlUnionShapeByteValue(:final value) => serializers.serialize( + XmlUnionShapeByteValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - XmlUnionShapeShortValue(:final value) => serializers.serialize( + XmlUnionShapeShortValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - XmlUnionShapeIntegerValue(:final value) => serializers.serialize( + XmlUnionShapeIntegerValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(int), ), - XmlUnionShapeLongValue(:final value) => serializers.serialize( + XmlUnionShapeLongValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i2.Int64), ), - XmlUnionShapeFloatValue(:final value) => serializers.serialize( + XmlUnionShapeFloatValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(double), ), - XmlUnionShapeDoubleValue(:final value) => serializers.serialize( + XmlUnionShapeDoubleValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(double), ), - XmlUnionShapeUnionValue(:final value) => serializers.serialize( + XmlUnionShapeUnionValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(XmlUnionShape), ), - XmlUnionShapeStructValue(:final value) => serializers.serialize( + XmlUnionShapeStructValue$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.XmlNestedUnionStruct), ), - XmlUnionShapeSdkUnknown(:final value) => value, + XmlUnionShapeSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/s3.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/s3.dart index 81de15a37f..3854cd7eee 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/s3.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/s3.dart @@ -85,6 +85,7 @@ export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/object_lock_legal_h export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/object_lock_mode.dart'; export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/object_not_in_active_tier_error.dart'; export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/object_storage_class.dart'; +export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/optional_object_attributes.dart'; export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/output_serialization.dart'; export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/owner.dart'; export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/parquet_input.dart'; @@ -100,6 +101,7 @@ export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/replication_status. export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/request_charged.dart'; export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/request_payer.dart'; export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/request_progress.dart'; +export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/restore_status.dart'; export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/scan_range.dart'; export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/select_object_content_event_stream.dart'; export 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/select_object_content_output.dart'; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/serializers.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/serializers.dart index 6b7daa753d..ac0aea6a25 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/serializers.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/serializers.dart @@ -24,9 +24,9 @@ import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/completed_multipart import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/completed_part.dart' as _i7; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/compression_type.dart' - as _i65; + as _i67; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/continuation_event.dart' - as _i81; + as _i83; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/copy_object_output.dart' as _i21; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/copy_object_request.dart' @@ -34,15 +34,15 @@ import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/copy_object_request import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/copy_object_result.dart' as _i20; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/copy_part_result.dart' - as _i88; + as _i90; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/create_multipart_upload_output.dart' as _i24; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/create_multipart_upload_request.dart' as _i23; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/csv_input.dart' - as _i64; + as _i66; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/csv_output.dart' - as _i71; + as _i73; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/delete.dart' as _i28; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/delete_object_output.dart' @@ -58,13 +58,13 @@ import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/deleted_object.dart import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/encoding_type.dart' as _i44; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/end_event.dart' - as _i82; + as _i84; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/error.dart' as _i31; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/expression_type.dart' - as _i61; -import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/file_header_info.dart' as _i63; +import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/file_header_info.dart' + as _i65; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/get_object_output.dart' as _i36; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/get_object_request.dart' @@ -76,35 +76,35 @@ import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/head_object_request import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/initiator.dart' as _i47; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/input_serialization.dart' - as _i69; + as _i71; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/intelligent_tiering_access_tier.dart' as _i37; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/invalid_object_state.dart' as _i38; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/json_input.dart' - as _i67; + as _i69; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/json_output.dart' - as _i72; + as _i74; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/json_type.dart' - as _i66; + as _i68; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/list_multipart_uploads_output.dart' as _i50; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/list_multipart_uploads_request.dart' as _i45; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/list_objects_v2_output.dart' - as _i54; + as _i56; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/list_objects_v2_request.dart' - as _i51; + as _i52; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/list_parts_output.dart' - as _i58; + as _i60; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/list_parts_request.dart' - as _i56; + as _i58; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/metadata_directive.dart' as _i14; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/multipart_upload.dart' as _i48; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/no_such_bucket.dart' - as _i55; + as _i57; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/no_such_key.dart' as _i39; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/no_such_upload.dart' @@ -112,7 +112,7 @@ import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/no_such_upload.dart import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/not_found.dart' as _i43; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/object.dart' - as _i53; + as _i55; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/object_canned_acl.dart' as _i12; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/object_identifier.dart' @@ -124,26 +124,28 @@ import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/object_lock_mode.da import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/object_not_in_active_tier_error.dart' as _i22; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/object_storage_class.dart' - as _i52; + as _i53; +import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/optional_object_attributes.dart' + as _i51; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/output_serialization.dart' - as _i73; + as _i75; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/owner.dart' as _i46; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/parquet_input.dart' - as _i68; -import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/part.dart' as _i57; + as _i70; +import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/part.dart' as _i59; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/progress.dart' - as _i79; + as _i81; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/progress_event.dart' - as _i80; + as _i82; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/put_object_output.dart' - as _i60; + as _i62; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/put_object_request.dart' - as _i59; + as _i61; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/quote_fields.dart' - as _i70; + as _i72; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/records_event.dart' - as _i76; + as _i78; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/replication_status.dart' as _i35; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/request_charged.dart' @@ -151,34 +153,36 @@ import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/request_charged.dar import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/request_payer.dart' as _i2; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/request_progress.dart' - as _i62; + as _i64; +import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/restore_status.dart' + as _i54; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/scan_range.dart' - as _i74; + as _i76; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/select_object_content_event_stream.dart' - as _i83; + as _i85; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/select_object_content_output.dart' - as _i84; + as _i86; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/select_object_content_request.dart' - as _i75; + as _i77; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/server_side_encryption.dart' as _i10; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/stats.dart' - as _i77; + as _i79; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/stats_event.dart' - as _i78; + as _i80; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/storage_class.dart' as _i16; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/tagging_directive.dart' as _i15; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/upload_part_copy_output.dart' - as _i89; + as _i91; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/upload_part_copy_request.dart' - as _i87; + as _i89; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/upload_part_output.dart' - as _i86; + as _i88; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/upload_part_request.dart' - as _i85; -import 'package:built_collection/built_collection.dart' as _i90; + as _i87; +import 'package:built_collection/built_collection.dart' as _i92; import 'package:built_value/serializer.dart'; import 'package:smithy/smithy.dart' as _i1; @@ -232,88 +236,94 @@ const List<_i1.SmithySerializer> serializers = [ ..._i48.MultipartUpload.serializers, ..._i49.CommonPrefix.serializers, ..._i50.ListMultipartUploadsOutput.serializers, - ..._i51.ListObjectsV2Request.serializers, - ..._i52.ObjectStorageClass.serializers, - ..._i53.S3Object.serializers, - ..._i54.ListObjectsV2Output.serializers, - ..._i55.NoSuchBucket.serializers, - ..._i56.ListPartsRequest.serializers, - ..._i57.Part.serializers, - ..._i58.ListPartsOutput.serializers, - ..._i59.PutObjectRequest.serializers, - ..._i60.PutObjectOutput.serializers, - ..._i61.ExpressionType.serializers, - ..._i62.RequestProgress.serializers, - ..._i63.FileHeaderInfo.serializers, - ..._i64.CsvInput.serializers, - ..._i65.CompressionType.serializers, - ..._i66.JsonType.serializers, - ..._i67.JsonInput.serializers, - ..._i68.ParquetInput.serializers, - ..._i69.InputSerialization.serializers, - ..._i70.QuoteFields.serializers, - ..._i71.CsvOutput.serializers, - ..._i72.JsonOutput.serializers, - ..._i73.OutputSerialization.serializers, - ..._i74.ScanRange.serializers, - ..._i75.SelectObjectContentRequest.serializers, - ..._i76.RecordsEvent.serializers, - ..._i77.Stats.serializers, - ..._i78.StatsEvent.serializers, - ..._i79.Progress.serializers, - ..._i80.ProgressEvent.serializers, - ..._i81.ContinuationEvent.serializers, - ..._i82.EndEvent.serializers, - ..._i83.SelectObjectContentEventStream.serializers, - ..._i84.SelectObjectContentOutput.serializers, - ..._i85.UploadPartRequest.serializers, - ..._i86.UploadPartOutput.serializers, - ..._i87.UploadPartCopyRequest.serializers, - ..._i88.CopyPartResult.serializers, - ..._i89.UploadPartCopyOutput.serializers, + ..._i51.OptionalObjectAttributes.serializers, + ..._i52.ListObjectsV2Request.serializers, + ..._i53.ObjectStorageClass.serializers, + ..._i54.RestoreStatus.serializers, + ..._i55.S3Object.serializers, + ..._i56.ListObjectsV2Output.serializers, + ..._i57.NoSuchBucket.serializers, + ..._i58.ListPartsRequest.serializers, + ..._i59.Part.serializers, + ..._i60.ListPartsOutput.serializers, + ..._i61.PutObjectRequest.serializers, + ..._i62.PutObjectOutput.serializers, + ..._i63.ExpressionType.serializers, + ..._i64.RequestProgress.serializers, + ..._i65.FileHeaderInfo.serializers, + ..._i66.CsvInput.serializers, + ..._i67.CompressionType.serializers, + ..._i68.JsonType.serializers, + ..._i69.JsonInput.serializers, + ..._i70.ParquetInput.serializers, + ..._i71.InputSerialization.serializers, + ..._i72.QuoteFields.serializers, + ..._i73.CsvOutput.serializers, + ..._i74.JsonOutput.serializers, + ..._i75.OutputSerialization.serializers, + ..._i76.ScanRange.serializers, + ..._i77.SelectObjectContentRequest.serializers, + ..._i78.RecordsEvent.serializers, + ..._i79.Stats.serializers, + ..._i80.StatsEvent.serializers, + ..._i81.Progress.serializers, + ..._i82.ProgressEvent.serializers, + ..._i83.ContinuationEvent.serializers, + ..._i84.EndEvent.serializers, + ..._i85.SelectObjectContentEventStream.serializers, + ..._i86.SelectObjectContentOutput.serializers, + ..._i87.UploadPartRequest.serializers, + ..._i88.UploadPartOutput.serializers, + ..._i89.UploadPartCopyRequest.serializers, + ..._i90.CopyPartResult.serializers, + ..._i91.UploadPartCopyOutput.serializers, ]; final Map builderFactories = { const FullType( - _i90.BuiltList, + _i92.BuiltList, [FullType(_i7.CompletedPart)], - ): _i90.ListBuilder<_i7.CompletedPart>.new, + ): _i92.ListBuilder<_i7.CompletedPart>.new, const FullType( - _i90.BuiltMap, + _i92.BuiltMap, [ FullType(String), FullType(String), ], - ): _i90.MapBuilder.new, + ): _i92.MapBuilder.new, const FullType( - _i90.BuiltList, + _i92.BuiltList, [FullType(_i27.ObjectIdentifier)], - ): _i90.ListBuilder<_i27.ObjectIdentifier>.new, + ): _i92.ListBuilder<_i27.ObjectIdentifier>.new, const FullType( - _i90.BuiltList, + _i92.BuiltList, [FullType(_i30.DeletedObject)], - ): _i90.ListBuilder<_i30.DeletedObject>.new, + ): _i92.ListBuilder<_i30.DeletedObject>.new, const FullType( - _i90.BuiltList, + _i92.BuiltList, [FullType(_i31.Error)], - ): _i90.ListBuilder<_i31.Error>.new, + ): _i92.ListBuilder<_i31.Error>.new, const FullType( - _i90.BuiltList, + _i92.BuiltList, [FullType(_i49.CommonPrefix)], - ): _i90.ListBuilder<_i49.CommonPrefix>.new, + ): _i92.ListBuilder<_i49.CommonPrefix>.new, const FullType( - _i90.BuiltList, + _i92.BuiltList, [FullType(_i48.MultipartUpload)], - ): _i90.ListBuilder<_i48.MultipartUpload>.new, + ): _i92.ListBuilder<_i48.MultipartUpload>.new, + const FullType( + _i92.BuiltList, + [FullType(_i51.OptionalObjectAttributes)], + ): _i92.ListBuilder<_i51.OptionalObjectAttributes>.new, const FullType( - _i90.BuiltList, + _i92.BuiltList, [FullType(_i13.ChecksumAlgorithm)], - ): _i90.ListBuilder<_i13.ChecksumAlgorithm>.new, + ): _i92.ListBuilder<_i13.ChecksumAlgorithm>.new, const FullType( - _i90.BuiltList, - [FullType(_i53.S3Object)], - ): _i90.ListBuilder<_i53.S3Object>.new, + _i92.BuiltList, + [FullType(_i55.S3Object)], + ): _i92.ListBuilder<_i55.S3Object>.new, const FullType( - _i90.BuiltList, - [FullType(_i57.Part)], - ): _i90.ListBuilder<_i57.Part>.new, + _i92.BuiltList, + [FullType(_i59.Part)], + ): _i92.ListBuilder<_i59.Part>.new, }; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart index 6d3a492869..31db568f0c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart @@ -78,7 +78,7 @@ abstract class AbortMultipartUploadRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Key of the object for which the multipart upload was initiated. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart index 384a4e0bd1..2fa4eeccef 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart @@ -117,7 +117,7 @@ abstract class CompleteMultipartUploadOutput /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get bucket; /// The object key of the newly created object. @@ -267,7 +267,7 @@ abstract class CompleteMultipartUploadOutputPayload /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get bucket; /// The base64-encoded, 32-bit CRC32 checksum of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) in the _Amazon S3 User Guide_. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart index 3394a8fca4..7417f9b92b 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart @@ -129,7 +129,7 @@ abstract class CompleteMultipartUploadRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Object key for which the multipart upload was initiated. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.dart index f6c48709b8..d49821e007 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.dart @@ -331,7 +331,7 @@ abstract class CopyObjectRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Specifies caching behavior along the request/reply chain. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart index 3bc718e174..2f350fbe78 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart @@ -137,7 +137,7 @@ abstract class CreateMultipartUploadOutput /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get bucket; /// Object key for which the multipart upload was initiated. @@ -271,7 +271,7 @@ abstract class CreateMultipartUploadOutputPayload /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get bucket; /// Object key for which the multipart upload was initiated. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart index f1fba13cd0..c00912c97b 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart @@ -255,7 +255,7 @@ abstract class CreateMultipartUploadRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Specifies caching behavior along the request/reply chain. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.dart index e8afb5c0d0..61bf3a316a 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.dart @@ -89,7 +89,7 @@ abstract class DeleteObjectRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Key name of the object to delete. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.dart index e3c4e85a63..5bd9f981c9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.dart @@ -92,7 +92,7 @@ abstract class DeleteObjectsRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Container for the request. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/encoding_type.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/encoding_type.dart index 010bbfdfcc..823aa7d315 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/encoding_type.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/encoding_type.dart @@ -5,7 +5,7 @@ library amplify_storage_s3_dart.s3.model.encoding_type; // ignore_for_file: no_l import 'package:smithy/smithy.dart' as _i1; -/// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. +/// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key can contain any Unicode character; however, the XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. class EncodingType extends _i1.SmithyEnum { const EncodingType._( int index, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.dart index 1776fc57ed..e6f6db9787 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.dart @@ -183,7 +183,7 @@ abstract class GetObjectRequest /// /// When using an Object Lambda access point the hostname takes the form _AccessPointName_-_AccountId_.s3-object-lambda._Region_.amazonaws.com. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Return the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.dart index 8e2f1f8766..5b9b4005e1 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.dart @@ -143,7 +143,7 @@ abstract class HeadObjectRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Return the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart index a79c696c84..481d1ffdcd 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart @@ -133,7 +133,7 @@ abstract class ListMultipartUploadsOutput /// Encoding type used by Amazon S3 to encode object keys in the response. /// - /// If you specify `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: + /// If you specify the `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: /// /// `Delimiter`, `KeyMarker`, `Prefix`, `NextKeyMarker`, `Key`. _i5.EncodingType? get encodingType; @@ -262,7 +262,7 @@ abstract class ListMultipartUploadsOutputPayload /// Encoding type used by Amazon S3 to encode object keys in the response. /// - /// If you specify `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: + /// If you specify the `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: /// /// `Delimiter`, `KeyMarker`, `Prefix`, `NextKeyMarker`, `Key`. _i5.EncodingType? get encodingType; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart index 838facdc36..69929bdedf 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart @@ -101,7 +101,7 @@ abstract class ListMultipartUploadsRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Character you use to group keys. @@ -109,10 +109,10 @@ abstract class ListMultipartUploadsRequest /// All keys that contain the same string between the prefix, if specified, and the first occurrence of the delimiter after the prefix are grouped under a single result element, `CommonPrefixes`. If you don't specify the prefix parameter, then the substring starts at the beginning of the key. The keys that are grouped under `CommonPrefixes` result element are not returned elsewhere in the response. String? get delimiter; - /// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. + /// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key can contain any Unicode character; however, the XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. _i3.EncodingType? get encodingType; - /// Together with upload-id-marker, this parameter specifies the multipart upload after which listing should begin. + /// Together with `upload-id-marker`, this parameter specifies the multipart upload after which listing should begin. /// /// If `upload-id-marker` is not specified, only the keys lexicographically greater than the specified `key-marker` will be included in the list. /// @@ -122,7 +122,7 @@ abstract class ListMultipartUploadsRequest /// Sets the maximum number of multipart uploads, from 1 to 1,000, to return in the response body. 1,000 is the maximum number of uploads that can be returned in a response. int? get maxUploads; - /// Lists in-progress uploads only for those keys that begin with the specified prefix. You can use prefixes to separate a bucket into different grouping of keys. (You can think of using prefix to make groups in the same way you'd use a folder in a file system.) + /// Lists in-progress uploads only for those keys that begin with the specified prefix. You can use prefixes to separate a bucket into different grouping of keys. (You can think of using `prefix` to make groups in the same way that you'd use a folder in a file system.) String? get prefix; /// Together with key-marker, specifies the multipart upload after which listing should begin. If key-marker is not specified, the upload-id-marker parameter is ignored. Otherwise, any multipart uploads for a key equal to the key-marker might be included in the list only if they have an upload ID lexicographically greater than the specified `upload-id-marker`. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.dart index a8e9cd48b7..62939e9265 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.dart @@ -98,7 +98,7 @@ abstract class ListObjectsV2Output @BuiltValueHook(initializeBuilder: true) static void _init(ListObjectsV2OutputBuilder b) {} - /// Set to false if all of the results were returned. Set to true if more keys are available to return. If the number of results exceeds that specified by MaxKeys, all of the results might not be returned. + /// Set to `false` if all of the results were returned. Set to `true` if more keys are available to return. If the number of results exceeds that specified by `MaxKeys`, all of the results might not be returned. bool? get isTruncated; /// Metadata about each object returned. @@ -108,16 +108,16 @@ abstract class ListObjectsV2Output /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get name; /// Keys that begin with the indicated prefix. String? get prefix; - /// Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the `MaxKeys` value. + /// Causes keys that contain the same string between the `prefix` and the first occurrence of the delimiter to be rolled up into a single result element in the `CommonPrefixes` collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the `MaxKeys` value. String? get delimiter; - /// Sets the maximum number of keys returned in the response. By default the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. + /// Sets the maximum number of keys returned in the response. By default, the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. int? get maxKeys; /// All of the keys (up to 1,000) rolled up into a common prefix count as a single return when calculating the number of returns. @@ -133,15 +133,15 @@ abstract class ListObjectsV2Output /// Encoding type used by Amazon S3 to encode object key names in the XML response. /// - /// If you specify the encoding-type request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: + /// If you specify the `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: /// /// `Delimiter, Prefix, Key,` and `StartAfter`. _i5.EncodingType? get encodingType; - /// KeyCount is the number of keys returned with this request. KeyCount will always be less than or equal to the `MaxKeys` field. Say you ask for 50 keys, your result will include 50 keys or fewer. + /// `KeyCount` is the number of keys returned with this request. `KeyCount` will always be less than or equal to the `MaxKeys` field. For example, if you ask for 50 keys, your result will include 50 keys or fewer. int? get keyCount; - /// If ContinuationToken was sent with the request, it is included in the response. + /// If `ContinuationToken` was sent with the request, it is included in the response. String? get continuationToken; /// `NextContinuationToken` is sent when `isTruncated` is true, which means there are more keys in the bucket that can be listed. The next list requests to Amazon S3 can be continued with this `NextContinuationToken`. `NextContinuationToken` is obfuscated and is not a real key @@ -274,33 +274,33 @@ abstract class ListObjectsV2OutputPayload /// Metadata about each object returned. _i7.BuiltList<_i3.S3Object>? get contents; - /// If ContinuationToken was sent with the request, it is included in the response. + /// If `ContinuationToken` was sent with the request, it is included in the response. String? get continuationToken; - /// Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the `MaxKeys` value. + /// Causes keys that contain the same string between the `prefix` and the first occurrence of the delimiter to be rolled up into a single result element in the `CommonPrefixes` collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the `MaxKeys` value. String? get delimiter; /// Encoding type used by Amazon S3 to encode object key names in the XML response. /// - /// If you specify the encoding-type request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: + /// If you specify the `encoding-type` request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements: /// /// `Delimiter, Prefix, Key,` and `StartAfter`. _i5.EncodingType? get encodingType; - /// Set to false if all of the results were returned. Set to true if more keys are available to return. If the number of results exceeds that specified by MaxKeys, all of the results might not be returned. + /// Set to `false` if all of the results were returned. Set to `true` if more keys are available to return. If the number of results exceeds that specified by `MaxKeys`, all of the results might not be returned. bool? get isTruncated; - /// KeyCount is the number of keys returned with this request. KeyCount will always be less than or equal to the `MaxKeys` field. Say you ask for 50 keys, your result will include 50 keys or fewer. + /// `KeyCount` is the number of keys returned with this request. `KeyCount` will always be less than or equal to the `MaxKeys` field. For example, if you ask for 50 keys, your result will include 50 keys or fewer. int? get keyCount; - /// Sets the maximum number of keys returned in the response. By default the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. + /// Sets the maximum number of keys returned in the response. By default, the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. int? get maxKeys; /// The bucket name. /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String? get name; /// `NextContinuationToken` is sent when `isTruncated` is true, which means there are more keys in the bucket that can be listed. The next list requests to Amazon S3 can be continued with this `NextContinuationToken`. `NextContinuationToken` is obfuscated and is not a real key diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.dart index daa260cda9..a91733909d 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.dart @@ -5,12 +5,15 @@ library amplify_storage_s3_dart.s3.model.list_objects_v2_request; // ignore_for_ import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/encoding_type.dart' as _i3; +import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/optional_object_attributes.dart' + as _i5; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/request_payer.dart' as _i4; import 'package:aws_common/aws_common.dart' as _i2; +import 'package:built_collection/built_collection.dart' as _i6; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:meta/meta.dart' as _i5; +import 'package:meta/meta.dart' as _i7; import 'package:smithy/smithy.dart' as _i1; part 'list_objects_v2_request.g.dart'; @@ -34,6 +37,7 @@ abstract class ListObjectsV2Request String? startAfter, _i4.RequestPayer? requestPayer, String? expectedBucketOwner, + List<_i5.OptionalObjectAttributes>? optionalObjectAttributes, }) { return _$ListObjectsV2Request._( bucket: bucket, @@ -46,6 +50,9 @@ abstract class ListObjectsV2Request startAfter: startAfter, requestPayer: requestPayer, expectedBucketOwner: expectedBucketOwner, + optionalObjectAttributes: optionalObjectAttributes == null + ? null + : _i6.BuiltList(optionalObjectAttributes), ); } @@ -69,6 +76,12 @@ abstract class ListObjectsV2Request b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; } + if (request.headers['x-amz-optional-object-attributes'] != null) { + b.optionalObjectAttributes.addAll(_i1 + .parseHeader(request.headers['x-amz-optional-object-attributes']!) + .map((el) => + _i5.OptionalObjectAttributes.values.byValue(el.trim()))); + } if (request.queryParameters['delimiter'] != null) { b.delimiter = request.queryParameters['delimiter']!; } @@ -106,25 +119,25 @@ abstract class ListObjectsV2Request /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; - /// A delimiter is a character you use to group keys. + /// A delimiter is a character that you use to group keys. String? get delimiter; /// Encoding type used by Amazon S3 to encode object keys in the response. _i3.EncodingType? get encodingType; - /// Sets the maximum number of keys returned in the response. By default the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. + /// Sets the maximum number of keys returned in the response. By default, the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more. int? get maxKeys; /// Limits the response to keys that begin with the specified prefix. String? get prefix; - /// ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key. + /// `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. String? get continuationToken; - /// The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true. + /// 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`. bool? get fetchOwner; /// StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucket. @@ -135,6 +148,9 @@ abstract class ListObjectsV2Request /// The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code `403 Forbidden` (access denied). String? get expectedBucketOwner; + + /// Specifies the optional fields that you want returned in the response. Fields that you do not specify are not returned. + _i6.BuiltList<_i5.OptionalObjectAttributes>? get optionalObjectAttributes; @override String labelFor(String key) { switch (key) { @@ -161,6 +177,7 @@ abstract class ListObjectsV2Request startAfter, requestPayer, expectedBucketOwner, + optionalObjectAttributes, ]; @override String toString() { @@ -204,12 +221,16 @@ abstract class ListObjectsV2Request ..add( 'expectedBucketOwner', expectedBucketOwner, + ) + ..add( + 'optionalObjectAttributes', + optionalObjectAttributes, ); return helper.toString(); } } -@_i5.internal +@_i7.internal abstract class ListObjectsV2RequestPayload with _i2.AWSEquatable implements diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart index 28f4bf3c0a..0e1e3033bf 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart @@ -27,6 +27,8 @@ class _$ListObjectsV2Request extends ListObjectsV2Request { final _i4.RequestPayer? requestPayer; @override final String? expectedBucketOwner; + @override + final _i6.BuiltList<_i5.OptionalObjectAttributes>? optionalObjectAttributes; factory _$ListObjectsV2Request( [void Function(ListObjectsV2RequestBuilder)? updates]) => @@ -42,7 +44,8 @@ class _$ListObjectsV2Request extends ListObjectsV2Request { this.fetchOwner, this.startAfter, this.requestPayer, - this.expectedBucketOwner}) + this.expectedBucketOwner, + this.optionalObjectAttributes}) : super._() { BuiltValueNullFieldError.checkNotNull( bucket, r'ListObjectsV2Request', 'bucket'); @@ -70,7 +73,8 @@ class _$ListObjectsV2Request extends ListObjectsV2Request { fetchOwner == other.fetchOwner && startAfter == other.startAfter && requestPayer == other.requestPayer && - expectedBucketOwner == other.expectedBucketOwner; + expectedBucketOwner == other.expectedBucketOwner && + optionalObjectAttributes == other.optionalObjectAttributes; } @override @@ -86,6 +90,7 @@ class _$ListObjectsV2Request extends ListObjectsV2Request { _$hash = $jc(_$hash, startAfter.hashCode); _$hash = $jc(_$hash, requestPayer.hashCode); _$hash = $jc(_$hash, expectedBucketOwner.hashCode); + _$hash = $jc(_$hash, optionalObjectAttributes.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -139,6 +144,15 @@ class ListObjectsV2RequestBuilder set expectedBucketOwner(String? expectedBucketOwner) => _$this._expectedBucketOwner = expectedBucketOwner; + _i6.ListBuilder<_i5.OptionalObjectAttributes>? _optionalObjectAttributes; + _i6.ListBuilder<_i5.OptionalObjectAttributes> get optionalObjectAttributes => + _$this._optionalObjectAttributes ??= + new _i6.ListBuilder<_i5.OptionalObjectAttributes>(); + set optionalObjectAttributes( + _i6.ListBuilder<_i5.OptionalObjectAttributes>? + optionalObjectAttributes) => + _$this._optionalObjectAttributes = optionalObjectAttributes; + ListObjectsV2RequestBuilder() { ListObjectsV2Request._init(this); } @@ -156,6 +170,7 @@ class ListObjectsV2RequestBuilder _startAfter = $v.startAfter; _requestPayer = $v.requestPayer; _expectedBucketOwner = $v.expectedBucketOwner; + _optionalObjectAttributes = $v.optionalObjectAttributes?.toBuilder(); _$v = null; } return this; @@ -176,19 +191,33 @@ class ListObjectsV2RequestBuilder ListObjectsV2Request build() => _build(); _$ListObjectsV2Request _build() { - final _$result = _$v ?? - new _$ListObjectsV2Request._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'ListObjectsV2Request', 'bucket'), - delimiter: delimiter, - encodingType: encodingType, - maxKeys: maxKeys, - prefix: prefix, - continuationToken: continuationToken, - fetchOwner: fetchOwner, - startAfter: startAfter, - requestPayer: requestPayer, - expectedBucketOwner: expectedBucketOwner); + _$ListObjectsV2Request _$result; + try { + _$result = _$v ?? + new _$ListObjectsV2Request._( + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, r'ListObjectsV2Request', 'bucket'), + delimiter: delimiter, + encodingType: encodingType, + maxKeys: maxKeys, + prefix: prefix, + continuationToken: continuationToken, + fetchOwner: fetchOwner, + startAfter: startAfter, + requestPayer: requestPayer, + expectedBucketOwner: expectedBucketOwner, + optionalObjectAttributes: _optionalObjectAttributes?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'optionalObjectAttributes'; + _optionalObjectAttributes?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ListObjectsV2Request', _$failedField, e.toString()); + } + rethrow; + } replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.dart index f98f95872c..2785604156 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.dart @@ -133,7 +133,7 @@ abstract class ListPartsOutput /// When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request. String? get partNumberMarker; - /// When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request. + /// When a list is truncated, this element specifies the last part in the list, as well as the value to use for the `part-number-marker` request parameter in a subsequent request. String? get nextPartNumberMarker; /// Maximum number of parts that were allowed in the response. @@ -296,7 +296,7 @@ abstract class ListPartsOutputPayload /// Maximum number of parts that were allowed in the response. int? get maxParts; - /// When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request. + /// When a list is truncated, this element specifies the last part in the list, as well as the value to use for the `part-number-marker` request parameter in a subsequent request. String? get nextPartNumberMarker; /// Container element that identifies the object owner, after the object is created. If multipart upload is initiated by an IAM user, this element provides the parent account ID and display name. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.dart index 608c858284..5588a619c5 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.dart @@ -109,7 +109,7 @@ abstract class ListPartsRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Object key for which the multipart upload was initiated. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.dart index 615fdb4ffa..409698b991 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.dart @@ -8,12 +8,14 @@ import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/checksum_algorithm. import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/object_storage_class.dart' as _i4; import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/owner.dart' as _i5; +import 'package:amplify_storage_s3_dart/src/sdk/src/s3/model/restore_status.dart' + as _i6; import 'package:aws_common/aws_common.dart' as _i1; -import 'package:built_collection/built_collection.dart' as _i6; +import 'package:built_collection/built_collection.dart' as _i7; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:fixnum/fixnum.dart' as _i3; -import 'package:smithy/smithy.dart' as _i7; +import 'package:smithy/smithy.dart' as _i8; part 'object.g.dart'; @@ -30,16 +32,18 @@ abstract class S3Object _i3.Int64? size, _i4.ObjectStorageClass? storageClass, _i5.Owner? owner, + _i6.RestoreStatus? restoreStatus, }) { return _$S3Object._( key: key, lastModified: lastModified, eTag: eTag, checksumAlgorithm: - checksumAlgorithm == null ? null : _i6.BuiltList(checksumAlgorithm), + checksumAlgorithm == null ? null : _i7.BuiltList(checksumAlgorithm), size: size, storageClass: storageClass, owner: owner, + restoreStatus: restoreStatus, ); } @@ -48,7 +52,7 @@ abstract class S3Object const S3Object._(); - static const List<_i7.SmithySerializer> serializers = [ + static const List<_i8.SmithySerializer> serializers = [ ObjectRestXmlSerializer() ]; @@ -71,7 +75,7 @@ abstract class S3Object String? get eTag; /// The algorithm that was used to create a checksum of the object. - _i6.BuiltList<_i2.ChecksumAlgorithm>? get checksumAlgorithm; + _i7.BuiltList<_i2.ChecksumAlgorithm>? get checksumAlgorithm; /// Size in bytes of the object _i3.Int64? get size; @@ -81,6 +85,9 @@ abstract class S3Object /// The owner of the object _i5.Owner? get owner; + + /// Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see [Working with archived objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/archived-objects.html) in the _Amazon S3 User Guide_. + _i6.RestoreStatus? get restoreStatus; @override List get props => [ key, @@ -90,6 +97,7 @@ abstract class S3Object size, storageClass, owner, + restoreStatus, ]; @override String toString() { @@ -121,12 +129,16 @@ abstract class S3Object ..add( 'owner', owner, + ) + ..add( + 'restoreStatus', + restoreStatus, ); return helper.toString(); } } -class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { +class ObjectRestXmlSerializer extends _i8.StructuredSmithySerializer { const ObjectRestXmlSerializer() : super('Object'); @override @@ -135,8 +147,8 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { _$S3Object, ]; @override - Iterable<_i7.ShapeId> get supportedProtocols => const [ - _i7.ShapeId( + Iterable<_i8.ShapeId> get supportedProtocols => const [ + _i8.ShapeId( namespace: 'aws.protocols', shape: 'restXml', ) @@ -182,6 +194,11 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { value, specifiedType: const FullType(_i5.Owner), ) as _i5.Owner)); + case 'RestoreStatus': + result.restoreStatus.replace((serializers.deserialize( + value, + specifiedType: const FullType(_i6.RestoreStatus), + ) as _i6.RestoreStatus)); case 'Size': result.size = (serializers.deserialize( value, @@ -205,9 +222,9 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i7.XmlElementName( + const _i8.XmlElementName( 'Object', - _i7.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), + _i8.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), ) ]; final S3Object( @@ -216,24 +233,25 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { :key, :lastModified, :owner, + :restoreStatus, :size, :storageClass ) = object; if (checksumAlgorithm != null) { result$.addAll( - const _i7.XmlBuiltListSerializer(memberName: 'ChecksumAlgorithm') + const _i8.XmlBuiltListSerializer(memberName: 'ChecksumAlgorithm') .serialize( serializers, checksumAlgorithm, specifiedType: const FullType.nullable( - _i6.BuiltList, + _i7.BuiltList, [FullType(_i2.ChecksumAlgorithm)], ), )); } if (eTag != null) { result$ - ..add(const _i7.XmlElementName('ETag')) + ..add(const _i8.XmlElementName('ETag')) ..add(serializers.serialize( eTag, specifiedType: const FullType(String), @@ -241,7 +259,7 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { } if (key != null) { result$ - ..add(const _i7.XmlElementName('Key')) + ..add(const _i8.XmlElementName('Key')) ..add(serializers.serialize( key, specifiedType: const FullType(String), @@ -249,7 +267,7 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { } if (lastModified != null) { result$ - ..add(const _i7.XmlElementName('LastModified')) + ..add(const _i8.XmlElementName('LastModified')) ..add(serializers.serialize( lastModified, specifiedType: const FullType.nullable(DateTime), @@ -257,15 +275,23 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { } if (owner != null) { result$ - ..add(const _i7.XmlElementName('Owner')) + ..add(const _i8.XmlElementName('Owner')) ..add(serializers.serialize( owner, specifiedType: const FullType(_i5.Owner), )); } + if (restoreStatus != null) { + result$ + ..add(const _i8.XmlElementName('RestoreStatus')) + ..add(serializers.serialize( + restoreStatus, + specifiedType: const FullType(_i6.RestoreStatus), + )); + } if (size != null) { result$ - ..add(const _i7.XmlElementName('Size')) + ..add(const _i8.XmlElementName('Size')) ..add(serializers.serialize( size, specifiedType: const FullType.nullable(_i3.Int64), @@ -273,7 +299,7 @@ class ObjectRestXmlSerializer extends _i7.StructuredSmithySerializer { } if (storageClass != null) { result$ - ..add(const _i7.XmlElementName('StorageClass')) + ..add(const _i8.XmlElementName('StorageClass')) ..add(serializers.serialize( storageClass, specifiedType: const FullType.nullable(_i4.ObjectStorageClass), diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.g.dart index 771d6ac52f..ccbdf65195 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.g.dart @@ -14,13 +14,15 @@ class _$S3Object extends S3Object { @override final String? eTag; @override - final _i6.BuiltList<_i2.ChecksumAlgorithm>? checksumAlgorithm; + final _i7.BuiltList<_i2.ChecksumAlgorithm>? checksumAlgorithm; @override final _i3.Int64? size; @override final _i4.ObjectStorageClass? storageClass; @override final _i5.Owner? owner; + @override + final _i6.RestoreStatus? restoreStatus; factory _$S3Object([void Function(S3ObjectBuilder)? updates]) => (new S3ObjectBuilder()..update(updates))._build(); @@ -32,7 +34,8 @@ class _$S3Object extends S3Object { this.checksumAlgorithm, this.size, this.storageClass, - this.owner}) + this.owner, + this.restoreStatus}) : super._(); @override @@ -52,7 +55,8 @@ class _$S3Object extends S3Object { checksumAlgorithm == other.checksumAlgorithm && size == other.size && storageClass == other.storageClass && - owner == other.owner; + owner == other.owner && + restoreStatus == other.restoreStatus; } @override @@ -65,6 +69,7 @@ class _$S3Object extends S3Object { _$hash = $jc(_$hash, size.hashCode); _$hash = $jc(_$hash, storageClass.hashCode); _$hash = $jc(_$hash, owner.hashCode); + _$hash = $jc(_$hash, restoreStatus.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -86,12 +91,12 @@ class S3ObjectBuilder implements Builder { String? get eTag => _$this._eTag; set eTag(String? eTag) => _$this._eTag = eTag; - _i6.ListBuilder<_i2.ChecksumAlgorithm>? _checksumAlgorithm; - _i6.ListBuilder<_i2.ChecksumAlgorithm> get checksumAlgorithm => + _i7.ListBuilder<_i2.ChecksumAlgorithm>? _checksumAlgorithm; + _i7.ListBuilder<_i2.ChecksumAlgorithm> get checksumAlgorithm => _$this._checksumAlgorithm ??= - new _i6.ListBuilder<_i2.ChecksumAlgorithm>(); + new _i7.ListBuilder<_i2.ChecksumAlgorithm>(); set checksumAlgorithm( - _i6.ListBuilder<_i2.ChecksumAlgorithm>? checksumAlgorithm) => + _i7.ListBuilder<_i2.ChecksumAlgorithm>? checksumAlgorithm) => _$this._checksumAlgorithm = checksumAlgorithm; _i3.Int64? _size; @@ -107,6 +112,12 @@ class S3ObjectBuilder implements Builder { _i5.OwnerBuilder get owner => _$this._owner ??= new _i5.OwnerBuilder(); set owner(_i5.OwnerBuilder? owner) => _$this._owner = owner; + _i6.RestoreStatusBuilder? _restoreStatus; + _i6.RestoreStatusBuilder get restoreStatus => + _$this._restoreStatus ??= new _i6.RestoreStatusBuilder(); + set restoreStatus(_i6.RestoreStatusBuilder? restoreStatus) => + _$this._restoreStatus = restoreStatus; + S3ObjectBuilder() { S3Object._init(this); } @@ -121,6 +132,7 @@ class S3ObjectBuilder implements Builder { _size = $v.size; _storageClass = $v.storageClass; _owner = $v.owner?.toBuilder(); + _restoreStatus = $v.restoreStatus?.toBuilder(); _$v = null; } return this; @@ -151,7 +163,8 @@ class S3ObjectBuilder implements Builder { checksumAlgorithm: _checksumAlgorithm?.build(), size: size, storageClass: storageClass, - owner: _owner?.build()); + owner: _owner?.build(), + restoreStatus: _restoreStatus?.build()); } catch (_) { late String _$failedField; try { @@ -160,6 +173,8 @@ class S3ObjectBuilder implements Builder { _$failedField = 'owner'; _owner?.build(); + _$failedField = 'restoreStatus'; + _restoreStatus?.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'S3Object', _$failedField, e.toString()); diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/optional_object_attributes.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/optional_object_attributes.dart new file mode 100644 index 0000000000..1067ebe093 --- /dev/null +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/optional_object_attributes.dart @@ -0,0 +1,60 @@ +// Generated with smithy-dart 0.3.1. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names + +library amplify_storage_s3_dart.s3.model.optional_object_attributes; // ignore_for_file: no_leading_underscores_for_library_prefixes + +import 'package:smithy/smithy.dart' as _i1; + +class OptionalObjectAttributes + extends _i1.SmithyEnum { + const OptionalObjectAttributes._( + int index, + String name, + String value, + ) : super( + index, + name, + value, + ); + + const OptionalObjectAttributes._sdkUnknown(String value) + : super.sdkUnknown(value); + + static const restoreStatus = OptionalObjectAttributes._( + 0, + 'RESTORE_STATUS', + 'RestoreStatus', + ); + + /// All values of [OptionalObjectAttributes]. + static const values = [ + OptionalObjectAttributes.restoreStatus + ]; + + static const List<_i1.SmithySerializer> + serializers = [ + _i1.SmithyEnumSerializer( + 'OptionalObjectAttributes', + values: values, + sdkUnknown: OptionalObjectAttributes._sdkUnknown, + supportedProtocols: [ + _i1.ShapeId( + namespace: 'aws.protocols', + shape: 'restXml', + ) + ], + ) + ]; +} + +extension OptionalObjectAttributesHelpers on List { + /// Returns the value of [OptionalObjectAttributes] whose name matches [name]. + /// + /// Throws a `StateError` if no matching value is found. + OptionalObjectAttributes byName(String name) => + firstWhere((el) => el.name.toLowerCase() == name.toLowerCase()); + + /// Returns the value of [OptionalObjectAttributes] whose value matches [value]. + OptionalObjectAttributes byValue(String value) => + firstWhere((el) => el.value == value); +} diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.dart index 4cfe55c1ad..535bf53de1 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.dart @@ -294,7 +294,7 @@ abstract class PutObjectRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Can be used to specify caching behavior along the request/reply chain. For more information, see [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9). diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.dart new file mode 100644 index 0000000000..ccd497ca92 --- /dev/null +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.dart @@ -0,0 +1,155 @@ +// Generated with smithy-dart 0.3.1. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names + +library amplify_storage_s3_dart.s3.model.restore_status; // ignore_for_file: no_leading_underscores_for_library_prefixes + +import 'package:aws_common/aws_common.dart' as _i1; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:smithy/smithy.dart' as _i2; + +part 'restore_status.g.dart'; + +/// Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see [Working with archived objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/archived-objects.html) in the _Amazon S3 User Guide_. +abstract class RestoreStatus + with _i1.AWSEquatable + implements Built { + /// Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see [Working with archived objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/archived-objects.html) in the _Amazon S3 User Guide_. + factory RestoreStatus({ + bool? isRestoreInProgress, + DateTime? restoreExpiryDate, + }) { + return _$RestoreStatus._( + isRestoreInProgress: isRestoreInProgress, + restoreExpiryDate: restoreExpiryDate, + ); + } + + /// Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see [Working with archived objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/archived-objects.html) in the _Amazon S3 User Guide_. + factory RestoreStatus.build([void Function(RestoreStatusBuilder) updates]) = + _$RestoreStatus; + + const RestoreStatus._(); + + static const List<_i2.SmithySerializer> serializers = [ + RestoreStatusRestXmlSerializer() + ]; + + @BuiltValueHook(initializeBuilder: true) + static void _init(RestoreStatusBuilder b) {} + + /// Specifies whether the object is currently being restored. If the object restoration is in progress, the header returns the value `TRUE`. For example: + /// + /// `x-amz-optional-object-attributes: IsRestoreInProgress="true"` + /// + /// If the object restoration has completed, the header returns the value `FALSE`. For example: + /// + /// `x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"` + /// + /// If the object hasn't been restored, there is no header response. + bool? get isRestoreInProgress; + + /// Indicates when the restored copy will expire. This value is populated only if the object has already been restored. For example: + /// + /// `x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"` + DateTime? get restoreExpiryDate; + @override + List get props => [ + isRestoreInProgress, + restoreExpiryDate, + ]; + @override + String toString() { + final helper = newBuiltValueToStringHelper('RestoreStatus') + ..add( + 'isRestoreInProgress', + isRestoreInProgress, + ) + ..add( + 'restoreExpiryDate', + restoreExpiryDate, + ); + return helper.toString(); + } +} + +class RestoreStatusRestXmlSerializer + extends _i2.StructuredSmithySerializer { + const RestoreStatusRestXmlSerializer() : super('RestoreStatus'); + + @override + Iterable get types => const [ + RestoreStatus, + _$RestoreStatus, + ]; + @override + Iterable<_i2.ShapeId> get supportedProtocols => const [ + _i2.ShapeId( + namespace: 'aws.protocols', + shape: 'restXml', + ) + ]; + @override + RestoreStatus deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = RestoreStatusBuilder(); + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current as String; + iterator.moveNext(); + final value = iterator.current; + if (value == null) { + continue; + } + switch (key) { + case 'IsRestoreInProgress': + result.isRestoreInProgress = (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool); + case 'RestoreExpiryDate': + result.restoreExpiryDate = (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) as DateTime); + } + } + + return result.build(); + } + + @override + Iterable serialize( + Serializers serializers, + RestoreStatus object, { + FullType specifiedType = FullType.unspecified, + }) { + final result$ = [ + const _i2.XmlElementName( + 'RestoreStatus', + _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), + ) + ]; + final RestoreStatus(:isRestoreInProgress, :restoreExpiryDate) = object; + if (isRestoreInProgress != null) { + result$ + ..add(const _i2.XmlElementName('IsRestoreInProgress')) + ..add(serializers.serialize( + isRestoreInProgress, + specifiedType: const FullType.nullable(bool), + )); + } + if (restoreExpiryDate != null) { + result$ + ..add(const _i2.XmlElementName('RestoreExpiryDate')) + ..add(serializers.serialize( + restoreExpiryDate, + specifiedType: const FullType.nullable(DateTime), + )); + } + return result$; + } +} diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.g.dart new file mode 100644 index 0000000000..e644e0f3d3 --- /dev/null +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_status.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$RestoreStatus extends RestoreStatus { + @override + final bool? isRestoreInProgress; + @override + final DateTime? restoreExpiryDate; + + factory _$RestoreStatus([void Function(RestoreStatusBuilder)? updates]) => + (new RestoreStatusBuilder()..update(updates))._build(); + + _$RestoreStatus._({this.isRestoreInProgress, this.restoreExpiryDate}) + : super._(); + + @override + RestoreStatus rebuild(void Function(RestoreStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + RestoreStatusBuilder toBuilder() => new RestoreStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is RestoreStatus && + isRestoreInProgress == other.isRestoreInProgress && + restoreExpiryDate == other.restoreExpiryDate; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, isRestoreInProgress.hashCode); + _$hash = $jc(_$hash, restoreExpiryDate.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } +} + +class RestoreStatusBuilder + implements Builder { + _$RestoreStatus? _$v; + + bool? _isRestoreInProgress; + bool? get isRestoreInProgress => _$this._isRestoreInProgress; + set isRestoreInProgress(bool? isRestoreInProgress) => + _$this._isRestoreInProgress = isRestoreInProgress; + + DateTime? _restoreExpiryDate; + DateTime? get restoreExpiryDate => _$this._restoreExpiryDate; + set restoreExpiryDate(DateTime? restoreExpiryDate) => + _$this._restoreExpiryDate = restoreExpiryDate; + + RestoreStatusBuilder() { + RestoreStatus._init(this); + } + + RestoreStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _isRestoreInProgress = $v.isRestoreInProgress; + _restoreExpiryDate = $v.restoreExpiryDate; + _$v = null; + } + return this; + } + + @override + void replace(RestoreStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$RestoreStatus; + } + + @override + void update(void Function(RestoreStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + RestoreStatus build() => _build(); + + _$RestoreStatus _build() { + final _$result = _$v ?? + new _$RestoreStatus._( + isRestoreInProgress: isRestoreInProgress, + restoreExpiryDate: restoreExpiryDate); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart index 85c6cbee18..ba44c9dc70 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart @@ -28,25 +28,26 @@ sealed class SelectObjectContentEventStream const SelectObjectContentEventStream._(); factory SelectObjectContentEventStream.records({_i2.Uint8List? payload}) => - SelectObjectContentEventStreamRecords(_i3.RecordsEvent(payload: payload)); + SelectObjectContentEventStreamRecords$( + _i3.RecordsEvent(payload: payload)); factory SelectObjectContentEventStream.stats({_i4.Stats? details}) => - SelectObjectContentEventStreamStats(_i5.StatsEvent(details: details)); + SelectObjectContentEventStreamStats$(_i5.StatsEvent(details: details)); factory SelectObjectContentEventStream.progress({_i6.Progress? details}) => - SelectObjectContentEventStreamProgress( + SelectObjectContentEventStreamProgress$( _i7.ProgressEvent(details: details)); factory SelectObjectContentEventStream.cont() => - SelectObjectContentEventStreamCont(_i8.ContinuationEvent()); + SelectObjectContentEventStreamCont$(_i8.ContinuationEvent()); factory SelectObjectContentEventStream.end() => - SelectObjectContentEventStreamEnd(_i9.EndEvent()); + SelectObjectContentEventStreamEnd$(_i9.EndEvent()); const factory SelectObjectContentEventStream.sdkUnknown( String name, Object value, - ) = SelectObjectContentEventStreamSdkUnknown; + ) = SelectObjectContentEventStreamSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [SelectObjectContentEventStreamRestXmlSerializer()]; @@ -105,9 +106,9 @@ sealed class SelectObjectContentEventStream } } -final class SelectObjectContentEventStreamRecords +final class SelectObjectContentEventStreamRecords$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamRecords(this.records) : super._(); + const SelectObjectContentEventStreamRecords$(this.records) : super._(); @override final _i3.RecordsEvent records; @@ -116,9 +117,9 @@ final class SelectObjectContentEventStreamRecords String get name => 'Records'; } -final class SelectObjectContentEventStreamStats +final class SelectObjectContentEventStreamStats$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamStats(this.stats) : super._(); + const SelectObjectContentEventStreamStats$(this.stats) : super._(); @override final _i5.StatsEvent stats; @@ -127,9 +128,9 @@ final class SelectObjectContentEventStreamStats String get name => 'Stats'; } -final class SelectObjectContentEventStreamProgress +final class SelectObjectContentEventStreamProgress$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamProgress(this.progress) : super._(); + const SelectObjectContentEventStreamProgress$(this.progress) : super._(); @override final _i7.ProgressEvent progress; @@ -138,9 +139,9 @@ final class SelectObjectContentEventStreamProgress String get name => 'Progress'; } -final class SelectObjectContentEventStreamCont +final class SelectObjectContentEventStreamCont$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamCont(this.cont) : super._(); + const SelectObjectContentEventStreamCont$(this.cont) : super._(); @override final _i8.ContinuationEvent cont; @@ -149,9 +150,9 @@ final class SelectObjectContentEventStreamCont String get name => 'Cont'; } -final class SelectObjectContentEventStreamEnd +final class SelectObjectContentEventStreamEnd$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamEnd(this.end) : super._(); + const SelectObjectContentEventStreamEnd$(this.end) : super._(); @override final _i9.EndEvent end; @@ -160,9 +161,9 @@ final class SelectObjectContentEventStreamEnd String get name => 'End'; } -final class SelectObjectContentEventStreamSdkUnknown +final class SelectObjectContentEventStreamSdkUnknown$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamSdkUnknown( + const SelectObjectContentEventStreamSdkUnknown$( this.name, this.value, ) : super._(); @@ -182,11 +183,11 @@ class SelectObjectContentEventStreamRestXmlSerializer @override Iterable get types => const [ SelectObjectContentEventStream, - SelectObjectContentEventStreamRecords, - SelectObjectContentEventStreamStats, - SelectObjectContentEventStreamProgress, - SelectObjectContentEventStreamCont, - SelectObjectContentEventStreamEnd, + SelectObjectContentEventStreamRecords$, + SelectObjectContentEventStreamStats$, + SelectObjectContentEventStreamProgress$, + SelectObjectContentEventStreamCont$, + SelectObjectContentEventStreamEnd$, ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ @@ -204,27 +205,27 @@ class SelectObjectContentEventStreamRestXmlSerializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'Records': - return SelectObjectContentEventStreamRecords((serializers.deserialize( + return SelectObjectContentEventStreamRecords$((serializers.deserialize( value, specifiedType: const FullType(_i3.RecordsEvent), ) as _i3.RecordsEvent)); case 'Stats': - return SelectObjectContentEventStreamStats((serializers.deserialize( + return SelectObjectContentEventStreamStats$((serializers.deserialize( value, specifiedType: const FullType(_i5.StatsEvent), ) as _i5.StatsEvent)); case 'Progress': - return SelectObjectContentEventStreamProgress((serializers.deserialize( + return SelectObjectContentEventStreamProgress$((serializers.deserialize( value, specifiedType: const FullType(_i7.ProgressEvent), ) as _i7.ProgressEvent)); case 'Cont': - return SelectObjectContentEventStreamCont((serializers.deserialize( + return SelectObjectContentEventStreamCont$((serializers.deserialize( value, specifiedType: const FullType(_i8.ContinuationEvent), ) as _i8.ContinuationEvent)); case 'End': - return SelectObjectContentEventStreamEnd((serializers.deserialize( + return SelectObjectContentEventStreamEnd$((serializers.deserialize( value, specifiedType: const FullType(_i9.EndEvent), ) as _i9.EndEvent)); @@ -244,32 +245,32 @@ class SelectObjectContentEventStreamRestXmlSerializer return [ object.name, switch (object) { - SelectObjectContentEventStreamRecords(:final value) => + SelectObjectContentEventStreamRecords$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i3.RecordsEvent), ), - SelectObjectContentEventStreamStats(:final value) => + SelectObjectContentEventStreamStats$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i5.StatsEvent), ), - SelectObjectContentEventStreamProgress(:final value) => + SelectObjectContentEventStreamProgress$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i7.ProgressEvent), ), - SelectObjectContentEventStreamCont(:final value) => + SelectObjectContentEventStreamCont$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i8.ContinuationEvent), ), - SelectObjectContentEventStreamEnd(:final value) => + SelectObjectContentEventStreamEnd$(:final value) => serializers.serialize( value, specifiedType: const FullType(_i9.EndEvent), ), - SelectObjectContentEventStreamSdkUnknown(:final value) => value, + SelectObjectContentEventStreamSdkUnknown$(:final value) => value, }, ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.dart index 4bb592a750..fd83ce4ddf 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.dart @@ -172,7 +172,7 @@ abstract class UploadPartCopyRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Specifies the source object for the copy operation. You specify the value in one of two formats, depending on whether you want to access the source object through an [access point](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html): diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.dart index a9a17e4ec4..1cdf7e18b1 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.dart @@ -153,7 +153,7 @@ abstract class UploadPartRequest /// /// When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form _AccessPointName_-_AccountId_.s3-accesspoint._Region_.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the _Amazon S3 User Guide_. /// - /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. + /// When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form `_AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com`. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see [What is S3 on Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the _Amazon S3 User Guide_. String get bucket; /// Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart index dbb4fb6036..776c5ce5e5 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart @@ -20,13 +20,13 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i5; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i4; -/// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) +/// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) in the _Amazon S3 User Guide_. /// /// To use this operation, you must have READ access to the bucket. /// -/// To use this action in an Identity and Access Management (IAM) policy, 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 [Permissions Related to Bucket Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +/// To use this action in an Identity and Access Management (IAM) policy, 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 Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) in the _Amazon S3 User Guide_. /// -/// This section describes the latest revision of this action. We recommend that you use this revised API for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). +/// This section describes the latest revision of this action. We recommend that you use this revised API operation for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API operation, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). /// /// To get a list of your buckets, see [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html). /// @@ -45,13 +45,13 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< String, int, _i3.ListObjectsV2Output> { - /// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) + /// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) in the _Amazon S3 User Guide_. /// /// To use this operation, you must have READ access to the bucket. /// - /// To use this action in an Identity and Access Management (IAM) policy, 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 [Permissions Related to Bucket Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + /// To use this action in an Identity and Access Management (IAM) policy, 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 Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) in the _Amazon S3 User Guide_. /// - /// This section describes the latest revision of this action. We recommend that you use this revised API for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). + /// This section describes the latest revision of this action. We recommend that you use this revised API operation for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API operation, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). /// /// To get a list of your buckets, see [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html). /// @@ -141,6 +141,15 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< input.expectedBucketOwner!; } } + if (input.optionalObjectAttributes != null) { + if (input.optionalObjectAttributes!.isNotEmpty) { + b.headers['x-amz-optional-object-attributes'] = input + .optionalObjectAttributes! + .map((el) => el.value) + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); + } + } if (input.delimiter != null) { b.queryParameters.add( 'delimiter', diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/s3_client.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/s3_client.dart index 17382bcfdb..d87a59ba00 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/s3_client.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/s3_client.dart @@ -784,13 +784,13 @@ class S3Client { ); } - /// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) + /// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. 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. Objects are returned sorted in an ascending order of the respective key names in the list. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) in the _Amazon S3 User Guide_. /// /// To use this operation, you must have READ access to the bucket. /// - /// To use this action in an Identity and Access Management (IAM) policy, 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 [Permissions Related to Bucket Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + /// To use this action in an Identity and Access Management (IAM) policy, 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 Subresource Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) in the _Amazon S3 User Guide_. /// - /// This section describes the latest revision of this action. We recommend that you use this revised API for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). + /// This section describes the latest revision of this action. We recommend that you use this revised API operation for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API operation, [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). /// /// To get a list of your buckets, see [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html). /// diff --git a/packages/test/amplify_integration_test/lib/src/sdk/cognito_identity_provider.dart b/packages/test/amplify_integration_test/lib/src/sdk/cognito_identity_provider.dart index 1f4b776b46..7e0b6d08b1 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/cognito_identity_provider.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/cognito_identity_provider.dart @@ -3,34 +3,11 @@ /// # Amazon Cognito Identity Provider /// -/// With the Amazon Cognito user pools API, you can set up user pools and app clients, and authenticate users. To authenticate users from third-party identity providers (IdPs) in this API, you can [link IdP users to native user profiles](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html). Learn more about the authentication and authorization of federated users in the [User pool OIDC and hosted UI API endpoints reference](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-userpools-server-contract-reference.html). +/// Using the Amazon Cognito user pools API, you can create a user pool to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies. /// -/// This API reference provides detailed information about API operations and object types in Amazon Cognito. At the bottom of the page for each API operation and object, under _See Also_, you can learn how to use it in an Amazon Web Services SDK in the language of your choice. +/// This API reference provides information about user pools in Amazon Cognito user pools. /// -/// Along with resource management operations, the Amazon Cognito user pools API includes classes of operations and authorization models for client-side and server-side user operations. For more information, see [Using the Amazon Cognito native and OIDC APIs](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html) in the _Amazon Cognito Developer Guide_. -/// -/// You can also start reading about the `CognitoIdentityProvider` client in the following SDK guides. -/// -/// * [Amazon Web Services Command Line Interface](https://docs.aws.amazon.com/cli/latest/reference/cognito-idp/index.html#cli-aws-cognito-idp) -/// -/// * [Amazon Web Services SDK for .NET](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/CognitoIdentityProvider/TCognitoIdentityProviderClient.html) -/// -/// * [Amazon Web Services SDK for C++](https://sdk.amazonaws.com/cpp/api/LATEST/aws-cpp-sdk-cognito-idp/html/class_aws_1_1_cognito_identity_provider_1_1_cognito_identity_provider_client.html) -/// -/// * [Amazon Web Services SDK for Go](https://docs.aws.amazon.com/sdk-for-go/api/service/cognitoidentityprovider/#CognitoIdentityProvider) -/// -/// * [Amazon Web Services SDK for Java V2](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/cognitoidentityprovider/CognitoIdentityProviderClient.html) -/// -/// * [Amazon Web Services SDK for JavaScript](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html) -/// -/// * [Amazon Web Services SDK for PHP V3](https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-cognito-idp-2016-04-18.html) -/// -/// * [Amazon Web Services SDK for Python](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cognito-idp.html) -/// -/// * [Amazon Web Services SDK for Ruby V3](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html) -/// -/// -/// To get started with an Amazon Web Services SDK, see [Tools to Build on Amazon Web Services](http://aws.amazon.com/developer/tools/). For example actions and scenarios, see [Code examples for Amazon Cognito Identity Provider using Amazon Web Services SDKs](https://docs.aws.amazon.com/cognito/latest/developerguide/service_code_examples_cognito-identity-provider.html). +/// For more information, see the [Amazon Cognito Documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html). library amplify_integration_test.cognito_identity_provider; export 'package:amplify_integration_test/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart'; diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart index 96df4d4975..016caa5769 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart @@ -14,63 +14,17 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:built_collection/built_collection.dart' as _i4; import 'package:smithy/smithy.dart' as _i3; -/// With the Amazon Cognito user pools API, you can set up user pools and app clients, and authenticate users. To authenticate users from third-party identity providers (IdPs) in this API, you can [link IdP users to native user profiles](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html). Learn more about the authentication and authorization of federated users in the [User pool OIDC and hosted UI API endpoints reference](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-userpools-server-contract-reference.html). +/// Using the Amazon Cognito user pools API, you can create a user pool to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies. /// -/// This API reference provides detailed information about API operations and object types in Amazon Cognito. At the bottom of the page for each API operation and object, under _See Also_, you can learn how to use it in an Amazon Web Services SDK in the language of your choice. +/// This API reference provides information about user pools in Amazon Cognito user pools. /// -/// Along with resource management operations, the Amazon Cognito user pools API includes classes of operations and authorization models for client-side and server-side user operations. For more information, see [Using the Amazon Cognito native and OIDC APIs](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html) in the _Amazon Cognito Developer Guide_. -/// -/// You can also start reading about the `CognitoIdentityProvider` client in the following SDK guides. -/// -/// * [Amazon Web Services Command Line Interface](https://docs.aws.amazon.com/cli/latest/reference/cognito-idp/index.html#cli-aws-cognito-idp) -/// -/// * [Amazon Web Services SDK for .NET](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/CognitoIdentityProvider/TCognitoIdentityProviderClient.html) -/// -/// * [Amazon Web Services SDK for C++](https://sdk.amazonaws.com/cpp/api/LATEST/aws-cpp-sdk-cognito-idp/html/class_aws_1_1_cognito_identity_provider_1_1_cognito_identity_provider_client.html) -/// -/// * [Amazon Web Services SDK for Go](https://docs.aws.amazon.com/sdk-for-go/api/service/cognitoidentityprovider/#CognitoIdentityProvider) -/// -/// * [Amazon Web Services SDK for Java V2](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/cognitoidentityprovider/CognitoIdentityProviderClient.html) -/// -/// * [Amazon Web Services SDK for JavaScript](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html) -/// -/// * [Amazon Web Services SDK for PHP V3](https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-cognito-idp-2016-04-18.html) -/// -/// * [Amazon Web Services SDK for Python](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cognito-idp.html) -/// -/// * [Amazon Web Services SDK for Ruby V3](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html) -/// -/// -/// To get started with an Amazon Web Services SDK, see [Tools to Build on Amazon Web Services](http://aws.amazon.com/developer/tools/). For example actions and scenarios, see [Code examples for Amazon Cognito Identity Provider using Amazon Web Services SDKs](https://docs.aws.amazon.com/cognito/latest/developerguide/service_code_examples_cognito-identity-provider.html). +/// For more information, see the [Amazon Cognito Documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html). class CognitoIdentityProviderClient { - /// With the Amazon Cognito user pools API, you can set up user pools and app clients, and authenticate users. To authenticate users from third-party identity providers (IdPs) in this API, you can [link IdP users to native user profiles](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html). Learn more about the authentication and authorization of federated users in the [User pool OIDC and hosted UI API endpoints reference](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-userpools-server-contract-reference.html). - /// - /// This API reference provides detailed information about API operations and object types in Amazon Cognito. At the bottom of the page for each API operation and object, under _See Also_, you can learn how to use it in an Amazon Web Services SDK in the language of your choice. - /// - /// Along with resource management operations, the Amazon Cognito user pools API includes classes of operations and authorization models for client-side and server-side user operations. For more information, see [Using the Amazon Cognito native and OIDC APIs](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html) in the _Amazon Cognito Developer Guide_. - /// - /// You can also start reading about the `CognitoIdentityProvider` client in the following SDK guides. - /// - /// * [Amazon Web Services Command Line Interface](https://docs.aws.amazon.com/cli/latest/reference/cognito-idp/index.html#cli-aws-cognito-idp) - /// - /// * [Amazon Web Services SDK for .NET](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/CognitoIdentityProvider/TCognitoIdentityProviderClient.html) - /// - /// * [Amazon Web Services SDK for C++](https://sdk.amazonaws.com/cpp/api/LATEST/aws-cpp-sdk-cognito-idp/html/class_aws_1_1_cognito_identity_provider_1_1_cognito_identity_provider_client.html) - /// - /// * [Amazon Web Services SDK for Go](https://docs.aws.amazon.com/sdk-for-go/api/service/cognitoidentityprovider/#CognitoIdentityProvider) - /// - /// * [Amazon Web Services SDK for Java V2](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/cognitoidentityprovider/CognitoIdentityProviderClient.html) - /// - /// * [Amazon Web Services SDK for JavaScript](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html) - /// - /// * [Amazon Web Services SDK for PHP V3](https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-cognito-idp-2016-04-18.html) - /// - /// * [Amazon Web Services SDK for Python](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cognito-idp.html) - /// - /// * [Amazon Web Services SDK for Ruby V3](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html) + /// Using the Amazon Cognito user pools API, you can create a user pool to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies. /// + /// This API reference provides information about user pools in Amazon Cognito user pools. /// - /// To get started with an Amazon Web Services SDK, see [Tools to Build on Amazon Web Services](http://aws.amazon.com/developer/tools/). For example actions and scenarios, see [Code examples for Amazon Cognito Identity Provider using Amazon Web Services SDKs](https://docs.aws.amazon.com/cognito/latest/developerguide/service_code_examples_cognito-identity-provider.html). + /// For more information, see the [Amazon Cognito Documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html). const CognitoIdentityProviderClient({ _i1.AWSHttpClient? client, required String region, diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.dart index 0be410e622..693de62597 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.dart @@ -70,7 +70,7 @@ abstract class AuthEventType /// The event type. _i2.EventType? get eventType; - /// The date and time, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format, when the item was created. + /// The creation date DateTime? get creationDate; /// The event response. diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.dart index 8f60a905a2..2f293222dc 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.dart @@ -42,7 +42,7 @@ abstract class EventFeedbackType @BuiltValueHook(initializeBuilder: true) static void _init(EventFeedbackTypeBuilder b) {} - /// The authentication event feedback value. When you provide a `FeedbackValue` value of `valid`, you tell Amazon Cognito that you trust a user session where Amazon Cognito has evaluated some level of risk. When you provide a `FeedbackValue` value of `invalid`, you tell Amazon Cognito that you don't trust a user session, or you don't believe that Amazon Cognito evaluated a high-enough risk level. + /// The event feedback value. _i2.FeedbackValueType get feedbackValue; /// The provider.