capo-devops-agent 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- capo_devops_agent/__init__.py +72 -0
- capo_devops_agent/_async.py +25 -0
- capo_devops_agent/_auth/_identity.py +16 -0
- capo_devops_agent/_auth/_providers.py +886 -0
- capo_devops_agent/_auth/_signers.py +88 -0
- capo_devops_agent/_auth/_sigv4.py +434 -0
- capo_devops_agent/_auth/_zapros_handler.py +80 -0
- capo_devops_agent/_iter.py +113 -0
- capo_devops_agent/_operations/dev_ops_agent/associate_service.py +192 -0
- capo_devops_agent/_operations/dev_ops_agent/create_agent_space.py +189 -0
- capo_devops_agent/_operations/dev_ops_agent/create_asset.py +189 -0
- capo_devops_agent/_operations/dev_ops_agent/create_asset_file.py +196 -0
- capo_devops_agent/_operations/dev_ops_agent/create_backlog_task.py +189 -0
- capo_devops_agent/_operations/dev_ops_agent/create_chat.py +195 -0
- capo_devops_agent/_operations/dev_ops_agent/create_private_connection.py +188 -0
- capo_devops_agent/_operations/dev_ops_agent/delete_agent_space.py +177 -0
- capo_devops_agent/_operations/dev_ops_agent/delete_asset.py +178 -0
- capo_devops_agent/_operations/dev_ops_agent/delete_asset_file.py +182 -0
- capo_devops_agent/_operations/dev_ops_agent/delete_private_connection.py +182 -0
- capo_devops_agent/_operations/dev_ops_agent/deregister_service.py +177 -0
- capo_devops_agent/_operations/dev_ops_agent/describe_private_connection.py +185 -0
- capo_devops_agent/_operations/dev_ops_agent/disable_operator_app.py +168 -0
- capo_devops_agent/_operations/dev_ops_agent/disassociate_service.py +181 -0
- capo_devops_agent/_operations/dev_ops_agent/enable_operator_app.py +198 -0
- capo_devops_agent/_operations/dev_ops_agent/get_account_usage.py +185 -0
- capo_devops_agent/_operations/dev_ops_agent/get_agent_space.py +185 -0
- capo_devops_agent/_operations/dev_ops_agent/get_asset.py +189 -0
- capo_devops_agent/_operations/dev_ops_agent/get_asset_content.py +192 -0
- capo_devops_agent/_operations/dev_ops_agent/get_asset_file.py +193 -0
- capo_devops_agent/_operations/dev_ops_agent/get_association.py +188 -0
- capo_devops_agent/_operations/dev_ops_agent/get_backlog_task.py +189 -0
- capo_devops_agent/_operations/dev_ops_agent/get_operator_app.py +188 -0
- capo_devops_agent/_operations/dev_ops_agent/get_recommendation.py +188 -0
- capo_devops_agent/_operations/dev_ops_agent/get_service.py +185 -0
- capo_devops_agent/_operations/dev_ops_agent/list_agent_spaces.py +187 -0
- capo_devops_agent/_operations/dev_ops_agent/list_asset_files.py +196 -0
- capo_devops_agent/_operations/dev_ops_agent/list_asset_types.py +188 -0
- capo_devops_agent/_operations/dev_ops_agent/list_asset_versions.py +190 -0
- capo_devops_agent/_operations/dev_ops_agent/list_assets.py +210 -0
- capo_devops_agent/_operations/dev_ops_agent/list_associations.py +191 -0
- capo_devops_agent/_operations/dev_ops_agent/list_backlog_tasks.py +189 -0
- capo_devops_agent/_operations/dev_ops_agent/list_chats.py +190 -0
- capo_devops_agent/_operations/dev_ops_agent/list_executions.py +190 -0
- capo_devops_agent/_operations/dev_ops_agent/list_goals.py +190 -0
- capo_devops_agent/_operations/dev_ops_agent/list_journal_records.py +189 -0
- capo_devops_agent/_operations/dev_ops_agent/list_pending_messages.py +188 -0
- capo_devops_agent/_operations/dev_ops_agent/list_private_connections.py +184 -0
- capo_devops_agent/_operations/dev_ops_agent/list_recommendations.py +191 -0
- capo_devops_agent/_operations/dev_ops_agent/list_services.py +197 -0
- capo_devops_agent/_operations/dev_ops_agent/list_tags_for_resource.py +186 -0
- capo_devops_agent/_operations/dev_ops_agent/list_webhooks.py +188 -0
- capo_devops_agent/_operations/dev_ops_agent/register_service.py +203 -0
- capo_devops_agent/_operations/dev_ops_agent/send_message.py +201 -0
- capo_devops_agent/_operations/dev_ops_agent/tag_resource.py +180 -0
- capo_devops_agent/_operations/dev_ops_agent/untag_resource.py +180 -0
- capo_devops_agent/_operations/dev_ops_agent/update_agent_space.py +190 -0
- capo_devops_agent/_operations/dev_ops_agent/update_asset.py +192 -0
- capo_devops_agent/_operations/dev_ops_agent/update_asset_file.py +196 -0
- capo_devops_agent/_operations/dev_ops_agent/update_association.py +196 -0
- capo_devops_agent/_operations/dev_ops_agent/update_backlog_task.py +190 -0
- capo_devops_agent/_operations/dev_ops_agent/update_goal.py +192 -0
- capo_devops_agent/_operations/dev_ops_agent/update_operator_app_idp_config.py +188 -0
- capo_devops_agent/_operations/dev_ops_agent/update_private_connection_certificate.py +190 -0
- capo_devops_agent/_operations/dev_ops_agent/update_recommendation.py +195 -0
- capo_devops_agent/_operations/dev_ops_agent/validate_aws_associations.py +180 -0
- capo_devops_agent/_pagination.py +21 -0
- capo_devops_agent/_protocol/__init__.py +1 -0
- capo_devops_agent/_protocol/errors.py +93 -0
- capo_devops_agent/_protocol/eventstream.py +238 -0
- capo_devops_agent/_protocol/serialize.py +47 -0
- capo_devops_agent/_protocol/xml.py +33 -0
- capo_devops_agent/_resources/dev_ops_agent/agent_space_resource.py +1149 -0
- capo_devops_agent/_resources/dev_ops_agent/private_connection_resource.py +567 -0
- capo_devops_agent/_resources/dev_ops_agent/service_resource.py +552 -0
- capo_devops_agent/_rule_engine/__init__.py +0 -0
- capo_devops_agent/_rule_engine/_aws_partition.py +160 -0
- capo_devops_agent/_rule_engine/_endpoint_rule_set.py +65 -0
- capo_devops_agent/_rule_engine/_endpoint_runtime.py +389 -0
- capo_devops_agent/_services/_aws_config.py +156 -0
- capo_devops_agent/_services/_pipeline.py +196 -0
- capo_devops_agent/_services/async_dev_ops_agent.py +2498 -0
- capo_devops_agent/_services/dev_ops_agent.py +2466 -0
- capo_devops_agent/errors/__init__.py +45 -0
- capo_devops_agent/errors/_base.py +94 -0
- capo_devops_agent/errors/access_denied_exception.py +48 -0
- capo_devops_agent/errors/conflict_exception.py +46 -0
- capo_devops_agent/errors/content_size_exceeded_exception.py +47 -0
- capo_devops_agent/errors/identity_center_service_exception.py +56 -0
- capo_devops_agent/errors/internal_server_exception.py +47 -0
- capo_devops_agent/errors/invalid_parameter_exception.py +48 -0
- capo_devops_agent/errors/resource_not_found_exception.py +48 -0
- capo_devops_agent/errors/service_quota_exceeded_exception.py +50 -0
- capo_devops_agent/errors/throttling_exception.py +46 -0
- capo_devops_agent/errors/validation_exception.py +71 -0
- capo_devops_agent/py.typed +0 -0
- capo_devops_agent/types/_prelude/blob.py +12 -0
- capo_devops_agent/types/_prelude/timestamp.py +17 -0
- capo_devops_agent/types/additional_service_details.py +312 -0
- capo_devops_agent/types/additional_service_registration_step.py +48 -0
- capo_devops_agent/types/agent_space.py +92 -0
- capo_devops_agent/types/agent_space_id.py +6 -0
- capo_devops_agent/types/agent_space_list.py +29 -0
- capo_devops_agent/types/agent_space_name.py +6 -0
- capo_devops_agent/types/api_key_value.py +6 -0
- capo_devops_agent/types/asset.py +85 -0
- capo_devops_agent/types/asset_content.py +65 -0
- capo_devops_agent/types/asset_file.py +92 -0
- capo_devops_agent/types/asset_file_body.py +53 -0
- capo_devops_agent/types/asset_file_bytes.py +16 -0
- capo_devops_agent/types/asset_file_content.py +51 -0
- capo_devops_agent/types/asset_file_path.py +6 -0
- capo_devops_agent/types/asset_file_summary.py +76 -0
- capo_devops_agent/types/asset_file_summary_list.py +31 -0
- capo_devops_agent/types/asset_file_text.py +6 -0
- capo_devops_agent/types/asset_id_list.py +14 -0
- capo_devops_agent/types/asset_list.py +29 -0
- capo_devops_agent/types/asset_type.py +6 -0
- capo_devops_agent/types/asset_type_list.py +31 -0
- capo_devops_agent/types/asset_type_summary.py +38 -0
- capo_devops_agent/types/asset_version_metadata.py +61 -0
- capo_devops_agent/types/asset_version_metadata_list.py +33 -0
- capo_devops_agent/types/asset_zip_bytes.py +16 -0
- capo_devops_agent/types/asset_zip_content.py +39 -0
- capo_devops_agent/types/assistant_message.py +33 -0
- capo_devops_agent/types/assistant_message_block.py +39 -0
- capo_devops_agent/types/associate_service_input.py +52 -0
- capo_devops_agent/types/associate_service_output.py +53 -0
- capo_devops_agent/types/association.py +112 -0
- capo_devops_agent/types/association_id.py +6 -0
- capo_devops_agent/types/associations_list.py +29 -0
- capo_devops_agent/types/auth_flow.py +19 -0
- capo_devops_agent/types/aws_configuration.py +56 -0
- capo_devops_agent/types/azure_configuration.py +26 -0
- capo_devops_agent/types/azure_dev_ops_configuration.py +42 -0
- capo_devops_agent/types/back_log_timestamp.py +21 -0
- capo_devops_agent/types/backlog_task_description.py +6 -0
- capo_devops_agent/types/backlog_task_title.py +6 -0
- capo_devops_agent/types/certificate_string.py +6 -0
- capo_devops_agent/types/chat_execution.py +68 -0
- capo_devops_agent/types/chat_execution_id.py +6 -0
- capo_devops_agent/types/chat_execution_list.py +31 -0
- capo_devops_agent/types/client_id.py +6 -0
- capo_devops_agent/types/client_secret.py +6 -0
- capo_devops_agent/types/create_agent_space_input.py +69 -0
- capo_devops_agent/types/create_agent_space_output.py +49 -0
- capo_devops_agent/types/create_asset_file_request.py +60 -0
- capo_devops_agent/types/create_asset_file_response.py +35 -0
- capo_devops_agent/types/create_asset_request.py +62 -0
- capo_devops_agent/types/create_asset_response.py +35 -0
- capo_devops_agent/types/create_backlog_task_request.py +94 -0
- capo_devops_agent/types/create_backlog_task_response.py +35 -0
- capo_devops_agent/types/create_chat_request.py +29 -0
- capo_devops_agent/types/create_chat_response.py +48 -0
- capo_devops_agent/types/create_private_connection_input.py +58 -0
- capo_devops_agent/types/create_private_connection_output.py +158 -0
- capo_devops_agent/types/custom_header_name.py +6 -0
- capo_devops_agent/types/custom_header_value.py +6 -0
- capo_devops_agent/types/custom_headers.py +29 -0
- capo_devops_agent/types/datadog_authorization_config.py +48 -0
- capo_devops_agent/types/datadog_service_details.py +68 -0
- capo_devops_agent/types/date_time.py +20 -0
- capo_devops_agent/types/delete_agent_space_input.py +24 -0
- capo_devops_agent/types/delete_agent_space_output.py +18 -0
- capo_devops_agent/types/delete_asset_file_request.py +30 -0
- capo_devops_agent/types/delete_asset_file_response.py +18 -0
- capo_devops_agent/types/delete_asset_request.py +27 -0
- capo_devops_agent/types/delete_asset_response.py +18 -0
- capo_devops_agent/types/delete_private_connection_input.py +24 -0
- capo_devops_agent/types/delete_private_connection_output.py +49 -0
- capo_devops_agent/types/deregister_service_input.py +24 -0
- capo_devops_agent/types/deregister_service_output.py +18 -0
- capo_devops_agent/types/describe_private_connection_input.py +24 -0
- capo_devops_agent/types/describe_private_connection_output.py +158 -0
- capo_devops_agent/types/description.py +6 -0
- capo_devops_agent/types/disable_operator_app_input.py +27 -0
- capo_devops_agent/types/disassociate_service_input.py +27 -0
- capo_devops_agent/types/disassociate_service_output.py +18 -0
- capo_devops_agent/types/document_list.py +14 -0
- capo_devops_agent/types/dynatrace_configuration.py +51 -0
- capo_devops_agent/types/dynatrace_o_auth_client_credentials_config.py +70 -0
- capo_devops_agent/types/dynatrace_resource_list.py +14 -0
- capo_devops_agent/types/dynatrace_service_authorization_config.py +52 -0
- capo_devops_agent/types/dynatrace_service_details.py +51 -0
- capo_devops_agent/types/email_address.py +6 -0
- capo_devops_agent/types/enable_operator_app_input.py +86 -0
- capo_devops_agent/types/enable_operator_app_output.py +88 -0
- capo_devops_agent/types/event_channel_configuration.py +18 -0
- capo_devops_agent/types/event_channel_details.py +36 -0
- capo_devops_agent/types/event_channel_type.py +15 -0
- capo_devops_agent/types/exchange_parameter_value.py +6 -0
- capo_devops_agent/types/exchange_parameters.py +27 -0
- capo_devops_agent/types/execution.py +111 -0
- capo_devops_agent/types/execution_list.py +29 -0
- capo_devops_agent/types/execution_status.py +21 -0
- capo_devops_agent/types/failure_message.py +6 -0
- capo_devops_agent/types/generic_webhook.py +62 -0
- capo_devops_agent/types/get_account_usage_input.py +18 -0
- capo_devops_agent/types/get_account_usage_output.py +143 -0
- capo_devops_agent/types/get_agent_space_input.py +24 -0
- capo_devops_agent/types/get_agent_space_output.py +49 -0
- capo_devops_agent/types/get_asset_content_request.py +29 -0
- capo_devops_agent/types/get_asset_content_response.py +46 -0
- capo_devops_agent/types/get_asset_file_request.py +32 -0
- capo_devops_agent/types/get_asset_file_response.py +35 -0
- capo_devops_agent/types/get_asset_request.py +29 -0
- capo_devops_agent/types/get_asset_response.py +35 -0
- capo_devops_agent/types/get_association_input.py +27 -0
- capo_devops_agent/types/get_association_output.py +38 -0
- capo_devops_agent/types/get_backlog_task_request.py +27 -0
- capo_devops_agent/types/get_backlog_task_response.py +35 -0
- capo_devops_agent/types/get_operator_app_input.py +24 -0
- capo_devops_agent/types/get_operator_app_output.py +78 -0
- capo_devops_agent/types/get_recommendation_request.py +29 -0
- capo_devops_agent/types/get_recommendation_response.py +39 -0
- capo_devops_agent/types/get_service_input.py +24 -0
- capo_devops_agent/types/get_service_output.py +49 -0
- capo_devops_agent/types/git_hub_configuration.py +67 -0
- capo_devops_agent/types/git_lab_configuration.py +39 -0
- capo_devops_agent/types/git_lab_details.py +60 -0
- capo_devops_agent/types/git_lab_token_type.py +18 -0
- capo_devops_agent/types/github_repo_owner_type.py +18 -0
- capo_devops_agent/types/goal.py +181 -0
- capo_devops_agent/types/goal_content.py +33 -0
- capo_devops_agent/types/goal_list.py +29 -0
- capo_devops_agent/types/goal_schedule.py +45 -0
- capo_devops_agent/types/goal_schedule_input.py +39 -0
- capo_devops_agent/types/goal_status.py +19 -0
- capo_devops_agent/types/goal_type.py +18 -0
- capo_devops_agent/types/grafana_service_details.py +68 -0
- capo_devops_agent/types/guid.py +6 -0
- capo_devops_agent/types/iam_auth_configuration.py +62 -0
- capo_devops_agent/types/idc_auth_configuration.py +75 -0
- capo_devops_agent/types/idp_auth_configuration.py +83 -0
- capo_devops_agent/types/idp_client_id.py +6 -0
- capo_devops_agent/types/idp_client_secret.py +6 -0
- capo_devops_agent/types/ip_address_or_dns_name.py +6 -0
- capo_devops_agent/types/ip_address_type.py +19 -0
- capo_devops_agent/types/journal_record.py +89 -0
- capo_devops_agent/types/journal_record_list.py +31 -0
- capo_devops_agent/types/journal_timestamp.py +21 -0
- capo_devops_agent/types/kms_key_arn.py +6 -0
- capo_devops_agent/types/list_agent_spaces_input.py +26 -0
- capo_devops_agent/types/list_agent_spaces_output.py +46 -0
- capo_devops_agent/types/list_asset_files_request.py +34 -0
- capo_devops_agent/types/list_asset_files_response.py +46 -0
- capo_devops_agent/types/list_asset_types_request.py +26 -0
- capo_devops_agent/types/list_asset_types_response.py +46 -0
- capo_devops_agent/types/list_asset_versions_request.py +32 -0
- capo_devops_agent/types/list_asset_versions_response.py +50 -0
- capo_devops_agent/types/list_assets_request.py +38 -0
- capo_devops_agent/types/list_assets_response.py +44 -0
- capo_devops_agent/types/list_associations_input.py +31 -0
- capo_devops_agent/types/list_associations_output.py +48 -0
- capo_devops_agent/types/list_backlog_tasks_request.py +84 -0
- capo_devops_agent/types/list_backlog_tasks_response.py +41 -0
- capo_devops_agent/types/list_chats_request.py +30 -0
- capo_devops_agent/types/list_chats_response.py +47 -0
- capo_devops_agent/types/list_executions_request.py +47 -0
- capo_devops_agent/types/list_executions_response.py +45 -0
- capo_devops_agent/types/list_goals_request.py +68 -0
- capo_devops_agent/types/list_goals_response.py +41 -0
- capo_devops_agent/types/list_journal_records_request.py +71 -0
- capo_devops_agent/types/list_journal_records_response.py +45 -0
- capo_devops_agent/types/list_of_security_group_ids.py +19 -0
- capo_devops_agent/types/list_of_subnet_ids.py +17 -0
- capo_devops_agent/types/list_pending_messages_request.py +33 -0
- capo_devops_agent/types/list_pending_messages_response.py +72 -0
- capo_devops_agent/types/list_private_connections_input.py +18 -0
- capo_devops_agent/types/list_private_connections_output.py +45 -0
- capo_devops_agent/types/list_recommendations_request.py +89 -0
- capo_devops_agent/types/list_recommendations_response.py +49 -0
- capo_devops_agent/types/list_services_input.py +29 -0
- capo_devops_agent/types/list_services_output.py +47 -0
- capo_devops_agent/types/list_tags_for_resource_request.py +19 -0
- capo_devops_agent/types/list_tags_for_resource_response.py +35 -0
- capo_devops_agent/types/list_webhooks_input.py +27 -0
- capo_devops_agent/types/list_webhooks_output.py +39 -0
- capo_devops_agent/types/locale.py +6 -0
- capo_devops_agent/types/max_ipv4_addresses_per_eni.py +6 -0
- capo_devops_agent/types/mcp_server_api_key_config.py +45 -0
- capo_devops_agent/types/mcp_server_authorization_config.py +138 -0
- capo_devops_agent/types/mcp_server_authorization_discovery_config.py +28 -0
- capo_devops_agent/types/mcp_server_authorization_method.py +20 -0
- capo_devops_agent/types/mcp_server_bearer_token_config.py +45 -0
- capo_devops_agent/types/mcp_server_configuration.py +37 -0
- capo_devops_agent/types/mcp_server_datadog_configuration.py +18 -0
- capo_devops_agent/types/mcp_server_details.py +66 -0
- capo_devops_agent/types/mcp_server_endpoint.py +6 -0
- capo_devops_agent/types/mcp_server_grafana_configuration.py +51 -0
- capo_devops_agent/types/mcp_server_name.py +6 -0
- capo_devops_agent/types/mcp_server_new_relic_configuration.py +33 -0
- capo_devops_agent/types/mcp_server_o_auth3_lo_config.py +106 -0
- capo_devops_agent/types/mcp_server_o_auth_client_credentials_config.py +90 -0
- capo_devops_agent/types/mcp_server_sig_v4_authorization_config.py +67 -0
- capo_devops_agent/types/mcp_server_sig_v4_configuration.py +37 -0
- capo_devops_agent/types/mcp_server_sig_v4_service_details.py +68 -0
- capo_devops_agent/types/mcp_server_splunk_configuration.py +18 -0
- capo_devops_agent/types/mcp_tools_list.py +14 -0
- capo_devops_agent/types/message.py +65 -0
- capo_devops_agent/types/message_content.py +6 -0
- capo_devops_agent/types/monitor_account_type.py +15 -0
- capo_devops_agent/types/new_relic_alert_policy_ids.py +14 -0
- capo_devops_agent/types/new_relic_api_key_config.py +117 -0
- capo_devops_agent/types/new_relic_application_ids.py +14 -0
- capo_devops_agent/types/new_relic_entity_guids.py +14 -0
- capo_devops_agent/types/new_relic_region.py +18 -0
- capo_devops_agent/types/new_relic_service_authorization_config.py +50 -0
- capo_devops_agent/types/new_relic_service_details.py +45 -0
- capo_devops_agent/types/next_token.py +6 -0
- capo_devops_agent/types/o_auth_additional_step_details.py +28 -0
- capo_devops_agent/types/o_auth_scope.py +6 -0
- capo_devops_agent/types/operator_app_url.py +6 -0
- capo_devops_agent/types/order_type.py +18 -0
- capo_devops_agent/types/pager_duty_authorization_config.py +48 -0
- capo_devops_agent/types/pager_duty_configuration.py +49 -0
- capo_devops_agent/types/pager_duty_details.py +59 -0
- capo_devops_agent/types/pager_duty_o_auth_client_credentials_config.py +70 -0
- capo_devops_agent/types/pager_duty_scopes.py +14 -0
- capo_devops_agent/types/pager_duty_scopes_list.py +14 -0
- capo_devops_agent/types/pager_duty_services_list.py +14 -0
- capo_devops_agent/types/pending_message.py +44 -0
- capo_devops_agent/types/pending_messages.py +31 -0
- capo_devops_agent/types/port_range.py +6 -0
- capo_devops_agent/types/port_ranges.py +17 -0
- capo_devops_agent/types/post_register_service_supported_service.py +28 -0
- capo_devops_agent/types/priority.py +21 -0
- capo_devops_agent/types/priority_list.py +29 -0
- capo_devops_agent/types/private_connection_mode.py +67 -0
- capo_devops_agent/types/private_connection_name.py +6 -0
- capo_devops_agent/types/private_connection_status.py +21 -0
- capo_devops_agent/types/private_connection_summary.py +147 -0
- capo_devops_agent/types/private_connection_summary_list.py +35 -0
- capo_devops_agent/types/private_connection_type.py +18 -0
- capo_devops_agent/types/recommendation.py +181 -0
- capo_devops_agent/types/recommendation_content.py +32 -0
- capo_devops_agent/types/recommendation_list.py +31 -0
- capo_devops_agent/types/recommendation_priority.py +19 -0
- capo_devops_agent/types/recommendation_status.py +22 -0
- capo_devops_agent/types/reference_input.py +58 -0
- capo_devops_agent/types/reference_output.py +53 -0
- capo_devops_agent/types/register_service_input.py +101 -0
- capo_devops_agent/types/register_service_output.py +67 -0
- capo_devops_agent/types/registered_azure_dev_ops_service_details.py +28 -0
- capo_devops_agent/types/registered_azure_identity_details.py +70 -0
- capo_devops_agent/types/registered_git_lab_service_details.py +52 -0
- capo_devops_agent/types/registered_github_service_details.py +54 -0
- capo_devops_agent/types/registered_grafana_server_details.py +53 -0
- capo_devops_agent/types/registered_mcp_server_details.py +72 -0
- capo_devops_agent/types/registered_mcp_server_sig_v4_details.py +89 -0
- capo_devops_agent/types/registered_new_relic_details.py +53 -0
- capo_devops_agent/types/registered_pager_duty_details.py +39 -0
- capo_devops_agent/types/registered_service.py +112 -0
- capo_devops_agent/types/registered_service_now_details.py +30 -0
- capo_devops_agent/types/registered_services_list.py +31 -0
- capo_devops_agent/types/registered_slack_service_details.py +33 -0
- capo_devops_agent/types/resource_config_dns_resolution.py +18 -0
- capo_devops_agent/types/resource_configuration_arn.py +6 -0
- capo_devops_agent/types/resource_gateway_arn.py +6 -0
- capo_devops_agent/types/resource_id.py +6 -0
- capo_devops_agent/types/role_arn.py +6 -0
- capo_devops_agent/types/scheduler_state.py +18 -0
- capo_devops_agent/types/scopes.py +17 -0
- capo_devops_agent/types/security_group_id.py +6 -0
- capo_devops_agent/types/self_managed_input.py +44 -0
- capo_devops_agent/types/send_message_content_block_delta.py +69 -0
- capo_devops_agent/types/send_message_content_block_delta_event.py +69 -0
- capo_devops_agent/types/send_message_content_block_start_event.py +62 -0
- capo_devops_agent/types/send_message_content_block_stop_event.py +62 -0
- capo_devops_agent/types/send_message_context.py +35 -0
- capo_devops_agent/types/send_message_events.py +218 -0
- capo_devops_agent/types/send_message_heartbeat_event.py +33 -0
- capo_devops_agent/types/send_message_json_delta.py +23 -0
- capo_devops_agent/types/send_message_request.py +81 -0
- capo_devops_agent/types/send_message_response.py +13 -0
- capo_devops_agent/types/send_message_response_completed_event.py +65 -0
- capo_devops_agent/types/send_message_response_created_event.py +44 -0
- capo_devops_agent/types/send_message_response_failed_event.py +56 -0
- capo_devops_agent/types/send_message_response_in_progress_event.py +44 -0
- capo_devops_agent/types/send_message_summary_event.py +44 -0
- capo_devops_agent/types/send_message_text_delta.py +23 -0
- capo_devops_agent/types/send_message_usage_info.py +35 -0
- capo_devops_agent/types/service.py +32 -0
- capo_devops_agent/types/service_configuration.py +404 -0
- capo_devops_agent/types/service_details.py +297 -0
- capo_devops_agent/types/service_id.py +6 -0
- capo_devops_agent/types/service_managed_input.py +149 -0
- capo_devops_agent/types/service_name.py +6 -0
- capo_devops_agent/types/service_now_authentication_scope_list.py +14 -0
- capo_devops_agent/types/service_now_configuration.py +48 -0
- capo_devops_agent/types/service_now_instance_url.py +6 -0
- capo_devops_agent/types/service_now_o_auth_client_credentials_config.py +70 -0
- capo_devops_agent/types/service_now_service_authorization_config.py +52 -0
- capo_devops_agent/types/service_now_service_details.py +54 -0
- capo_devops_agent/types/sig_v4_region.py +6 -0
- capo_devops_agent/types/slack_channel.py +32 -0
- capo_devops_agent/types/slack_configuration.py +59 -0
- capo_devops_agent/types/slack_transmission_target.py +55 -0
- capo_devops_agent/types/source_account_type.py +15 -0
- capo_devops_agent/types/source_aws_configuration.py +62 -0
- capo_devops_agent/types/subnet_id.py +6 -0
- capo_devops_agent/types/tag_key.py +6 -0
- capo_devops_agent/types/tag_key_list.py +17 -0
- capo_devops_agent/types/tag_resource_request.py +37 -0
- capo_devops_agent/types/tag_resource_response.py +18 -0
- capo_devops_agent/types/tag_value.py +6 -0
- capo_devops_agent/types/tags.py +29 -0
- capo_devops_agent/types/task.py +184 -0
- capo_devops_agent/types/task_filter.py +112 -0
- capo_devops_agent/types/task_list.py +29 -0
- capo_devops_agent/types/task_sort_field.py +18 -0
- capo_devops_agent/types/task_sort_order.py +18 -0
- capo_devops_agent/types/task_status.py +26 -0
- capo_devops_agent/types/task_status_list.py +29 -0
- capo_devops_agent/types/task_type.py +18 -0
- capo_devops_agent/types/task_type_list.py +29 -0
- capo_devops_agent/types/token_value.py +6 -0
- capo_devops_agent/types/untag_resource_request.py +26 -0
- capo_devops_agent/types/untag_resource_response.py +18 -0
- capo_devops_agent/types/update_agent_space_input.py +45 -0
- capo_devops_agent/types/update_agent_space_output.py +38 -0
- capo_devops_agent/types/update_asset_file_request.py +57 -0
- capo_devops_agent/types/update_asset_file_response.py +35 -0
- capo_devops_agent/types/update_asset_request.py +54 -0
- capo_devops_agent/types/update_asset_response.py +35 -0
- capo_devops_agent/types/update_association_input.py +47 -0
- capo_devops_agent/types/update_association_output.py +53 -0
- capo_devops_agent/types/update_backlog_task_request.py +48 -0
- capo_devops_agent/types/update_backlog_task_response.py +35 -0
- capo_devops_agent/types/update_goal_request.py +53 -0
- capo_devops_agent/types/update_goal_response.py +35 -0
- capo_devops_agent/types/update_operator_app_idp_config_input.py +33 -0
- capo_devops_agent/types/update_operator_app_idp_config_output.py +48 -0
- capo_devops_agent/types/update_private_connection_certificate_input.py +36 -0
- capo_devops_agent/types/update_private_connection_certificate_output.py +153 -0
- capo_devops_agent/types/update_recommendation_request.py +56 -0
- capo_devops_agent/types/update_recommendation_response.py +41 -0
- capo_devops_agent/types/usage_metric.py +41 -0
- capo_devops_agent/types/user_message.py +31 -0
- capo_devops_agent/types/user_message_block.py +37 -0
- capo_devops_agent/types/user_reference.py +46 -0
- capo_devops_agent/types/user_type.py +19 -0
- capo_devops_agent/types/validate_aws_associations_input.py +24 -0
- capo_devops_agent/types/validate_aws_associations_output.py +18 -0
- capo_devops_agent/types/validation_exception_field.py +33 -0
- capo_devops_agent/types/validation_exception_field_list.py +35 -0
- capo_devops_agent/types/validation_status.py +19 -0
- capo_devops_agent/types/vpc_id.py +6 -0
- capo_devops_agent/types/web_identity_token_audience_list.py +14 -0
- capo_devops_agent/types/webhook.py +52 -0
- capo_devops_agent/types/webhook_secret.py +6 -0
- capo_devops_agent/types/webhook_type.py +20 -0
- capo_devops_agent/types/webhooks_list.py +29 -0
- capo_devops_agent-0.1.0.dist-info/METADATA +101 -0
- capo_devops_agent-0.1.0.dist-info/RECORD +457 -0
- capo_devops_agent-0.1.0.dist-info/WHEEL +5 -0
- capo_devops_agent-0.1.0.dist-info/licenses/LICENSE +21 -0
- capo_devops_agent-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1149 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import uuid
|
|
4
|
+
from typing import TYPE_CHECKING, Optional
|
|
5
|
+
|
|
6
|
+
import capo_devops_agent._auth._signers
|
|
7
|
+
import capo_devops_agent._auth._sigv4
|
|
8
|
+
from capo_devops_agent._services._pipeline import (
|
|
9
|
+
AsyncOperationRequest,
|
|
10
|
+
AsyncOperationResponse,
|
|
11
|
+
OperationRequest,
|
|
12
|
+
OperationResponse,
|
|
13
|
+
aexecute_pipeline,
|
|
14
|
+
execute_pipeline,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
if TYPE_CHECKING:
|
|
18
|
+
import capo_devops_agent.types.agent_space
|
|
19
|
+
import capo_devops_agent.types.agent_space_id
|
|
20
|
+
import capo_devops_agent.types.agent_space_name
|
|
21
|
+
import capo_devops_agent.types.auth_flow
|
|
22
|
+
import capo_devops_agent.types.create_agent_space_input
|
|
23
|
+
import capo_devops_agent.types.create_agent_space_output
|
|
24
|
+
import capo_devops_agent.types.delete_agent_space_input
|
|
25
|
+
import capo_devops_agent.types.delete_agent_space_output
|
|
26
|
+
import capo_devops_agent.types.description
|
|
27
|
+
import capo_devops_agent.types.disable_operator_app_input
|
|
28
|
+
import capo_devops_agent.types.enable_operator_app_input
|
|
29
|
+
import capo_devops_agent.types.enable_operator_app_output
|
|
30
|
+
import capo_devops_agent.types.get_agent_space_input
|
|
31
|
+
import capo_devops_agent.types.get_agent_space_output
|
|
32
|
+
import capo_devops_agent.types.get_operator_app_input
|
|
33
|
+
import capo_devops_agent.types.get_operator_app_output
|
|
34
|
+
import capo_devops_agent.types.idp_client_id
|
|
35
|
+
import capo_devops_agent.types.idp_client_secret
|
|
36
|
+
import capo_devops_agent.types.kms_key_arn
|
|
37
|
+
import capo_devops_agent.types.list_agent_spaces_input
|
|
38
|
+
import capo_devops_agent.types.list_agent_spaces_output
|
|
39
|
+
import capo_devops_agent.types.locale
|
|
40
|
+
import capo_devops_agent.types.next_token
|
|
41
|
+
import capo_devops_agent.types.role_arn
|
|
42
|
+
import capo_devops_agent.types.tags
|
|
43
|
+
import capo_devops_agent.types.update_agent_space_input
|
|
44
|
+
import capo_devops_agent.types.update_agent_space_output
|
|
45
|
+
import capo_devops_agent.types.update_operator_app_idp_config_input
|
|
46
|
+
import capo_devops_agent.types.update_operator_app_idp_config_output
|
|
47
|
+
from capo_devops_agent._services.async_dev_ops_agent import (
|
|
48
|
+
AsyncDevOpsAgentClient,
|
|
49
|
+
AsyncDevOpsAgentClientConfig,
|
|
50
|
+
)
|
|
51
|
+
from capo_devops_agent._services.dev_ops_agent import (
|
|
52
|
+
DevOpsAgentClient,
|
|
53
|
+
DevOpsAgentClientConfig,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class AgentSpaceResource:
|
|
58
|
+
def __init__(self, service: DevOpsAgentClient) -> None:
|
|
59
|
+
self._service = service
|
|
60
|
+
|
|
61
|
+
def create(
|
|
62
|
+
self,
|
|
63
|
+
name: "capo_devops_agent.types.agent_space_name.AgentSpaceName",
|
|
64
|
+
*,
|
|
65
|
+
config_overrides: Optional[DevOpsAgentClientConfig] = None,
|
|
66
|
+
description: Optional["capo_devops_agent.types.description.Description"] = None,
|
|
67
|
+
locale: Optional["capo_devops_agent.types.locale.Locale"] = None,
|
|
68
|
+
kms_key_arn: Optional["capo_devops_agent.types.kms_key_arn.KmsKeyArn"] = None,
|
|
69
|
+
client_token: Optional[str] = None,
|
|
70
|
+
tags: Optional["capo_devops_agent.types.tags.Tags"] = None,
|
|
71
|
+
) -> "capo_devops_agent.types.create_agent_space_output.CreateAgentSpaceOutput":
|
|
72
|
+
"""<p>Creates a new AgentSpace with the specified name and description. Duplicate space names are allowed.</p>
|
|
73
|
+
|
|
74
|
+
Args:
|
|
75
|
+
name: <p>The name of the AgentSpace.</p>
|
|
76
|
+
description: <p>The description of the AgentSpace.</p>
|
|
77
|
+
locale: <p>The locale for the AgentSpace, which determines the language used in agent responses.</p>
|
|
78
|
+
kms_key_arn: <p>The ARN of the AWS Key Management Service (AWS KMS) customer managed key that's used to encrypt resources.</p>
|
|
79
|
+
client_token: <p>Client-provided token to ensure request idempotency. When the same token is provided in subsequent calls, the same response is returned within a 8-hour window.</p>
|
|
80
|
+
tags: <p>Tags to add to the AgentSpace at creation time.</p>
|
|
81
|
+
|
|
82
|
+
Raises:
|
|
83
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
84
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
85
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
86
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
87
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
88
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
89
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
90
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
91
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
92
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
def _handler(
|
|
96
|
+
req: "OperationRequest[capo_devops_agent.types.create_agent_space_input.CreateAgentSpaceInput]",
|
|
97
|
+
) -> OperationResponse[
|
|
98
|
+
"capo_devops_agent.types.create_agent_space_output.CreateAgentSpaceOutput"
|
|
99
|
+
]:
|
|
100
|
+
import capo_devops_agent._operations.dev_ops_agent.create_agent_space
|
|
101
|
+
|
|
102
|
+
output, http_response = (
|
|
103
|
+
capo_devops_agent._operations.dev_ops_agent.create_agent_space.create_agent_space(
|
|
104
|
+
req.options, req.input
|
|
105
|
+
)
|
|
106
|
+
)
|
|
107
|
+
return OperationResponse(output=output, response=http_response)
|
|
108
|
+
|
|
109
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
110
|
+
input_: capo_devops_agent.types.create_agent_space_input.CreateAgentSpaceInput = {
|
|
111
|
+
"name": name
|
|
112
|
+
}
|
|
113
|
+
if description is not None:
|
|
114
|
+
input_["description"] = description
|
|
115
|
+
if locale is not None:
|
|
116
|
+
input_["locale"] = locale
|
|
117
|
+
if kms_key_arn is not None:
|
|
118
|
+
input_["kms_key_arn"] = kms_key_arn
|
|
119
|
+
if client_token is None:
|
|
120
|
+
client_token = str(uuid.uuid4())
|
|
121
|
+
input_["client_token"] = client_token
|
|
122
|
+
if tags is not None:
|
|
123
|
+
input_["tags"] = tags
|
|
124
|
+
|
|
125
|
+
response = execute_pipeline(
|
|
126
|
+
OperationRequest(input=input_, options=options_),
|
|
127
|
+
handler=_handler,
|
|
128
|
+
interceptors=list(interceptors_),
|
|
129
|
+
)
|
|
130
|
+
response.response.close()
|
|
131
|
+
return response.output
|
|
132
|
+
|
|
133
|
+
def read(
|
|
134
|
+
self,
|
|
135
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
136
|
+
*,
|
|
137
|
+
config_overrides: Optional[DevOpsAgentClientConfig] = None,
|
|
138
|
+
) -> "capo_devops_agent.types.get_agent_space_output.GetAgentSpaceOutput":
|
|
139
|
+
"""<p>Retrieves detailed information about a specific AgentSpace.</p>
|
|
140
|
+
|
|
141
|
+
Args:
|
|
142
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
143
|
+
|
|
144
|
+
Raises:
|
|
145
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
146
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
147
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
148
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
149
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
150
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
151
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
152
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
153
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
154
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
def _handler(
|
|
158
|
+
req: "OperationRequest[capo_devops_agent.types.get_agent_space_input.GetAgentSpaceInput]",
|
|
159
|
+
) -> OperationResponse[
|
|
160
|
+
"capo_devops_agent.types.get_agent_space_output.GetAgentSpaceOutput"
|
|
161
|
+
]:
|
|
162
|
+
import capo_devops_agent._operations.dev_ops_agent.get_agent_space
|
|
163
|
+
|
|
164
|
+
output, http_response = (
|
|
165
|
+
capo_devops_agent._operations.dev_ops_agent.get_agent_space.get_agent_space(
|
|
166
|
+
req.options, req.input
|
|
167
|
+
)
|
|
168
|
+
)
|
|
169
|
+
return OperationResponse(output=output, response=http_response)
|
|
170
|
+
|
|
171
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
172
|
+
input_: capo_devops_agent.types.get_agent_space_input.GetAgentSpaceInput = {
|
|
173
|
+
"agent_space_id": agent_space_id
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
response = execute_pipeline(
|
|
177
|
+
OperationRequest(input=input_, options=options_),
|
|
178
|
+
handler=_handler,
|
|
179
|
+
interceptors=list(interceptors_),
|
|
180
|
+
)
|
|
181
|
+
response.response.close()
|
|
182
|
+
return response.output
|
|
183
|
+
|
|
184
|
+
def update(
|
|
185
|
+
self,
|
|
186
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
187
|
+
*,
|
|
188
|
+
config_overrides: Optional[DevOpsAgentClientConfig] = None,
|
|
189
|
+
name: Optional[
|
|
190
|
+
"capo_devops_agent.types.agent_space_name.AgentSpaceName"
|
|
191
|
+
] = None,
|
|
192
|
+
description: Optional["capo_devops_agent.types.description.Description"] = None,
|
|
193
|
+
locale: Optional["capo_devops_agent.types.locale.Locale"] = None,
|
|
194
|
+
) -> "capo_devops_agent.types.update_agent_space_output.UpdateAgentSpaceOutput":
|
|
195
|
+
"""<p>Updates the information of an existing AgentSpace.</p>
|
|
196
|
+
|
|
197
|
+
Args:
|
|
198
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
199
|
+
name: <p>The updated name of the AgentSpace.</p>
|
|
200
|
+
description: <p>The updated description of the AgentSpace.</p>
|
|
201
|
+
locale: <p>The updated locale for the AgentSpace, which determines the language used in agent responses.</p>
|
|
202
|
+
|
|
203
|
+
Raises:
|
|
204
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
205
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
206
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
207
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
208
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
209
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
210
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
211
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
212
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
213
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
214
|
+
"""
|
|
215
|
+
|
|
216
|
+
def _handler(
|
|
217
|
+
req: "OperationRequest[capo_devops_agent.types.update_agent_space_input.UpdateAgentSpaceInput]",
|
|
218
|
+
) -> OperationResponse[
|
|
219
|
+
"capo_devops_agent.types.update_agent_space_output.UpdateAgentSpaceOutput"
|
|
220
|
+
]:
|
|
221
|
+
import capo_devops_agent._operations.dev_ops_agent.update_agent_space
|
|
222
|
+
|
|
223
|
+
output, http_response = (
|
|
224
|
+
capo_devops_agent._operations.dev_ops_agent.update_agent_space.update_agent_space(
|
|
225
|
+
req.options, req.input
|
|
226
|
+
)
|
|
227
|
+
)
|
|
228
|
+
return OperationResponse(output=output, response=http_response)
|
|
229
|
+
|
|
230
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
231
|
+
input_: capo_devops_agent.types.update_agent_space_input.UpdateAgentSpaceInput = {
|
|
232
|
+
"agent_space_id": agent_space_id
|
|
233
|
+
}
|
|
234
|
+
if name is not None:
|
|
235
|
+
input_["name"] = name
|
|
236
|
+
if description is not None:
|
|
237
|
+
input_["description"] = description
|
|
238
|
+
if locale is not None:
|
|
239
|
+
input_["locale"] = locale
|
|
240
|
+
|
|
241
|
+
response = execute_pipeline(
|
|
242
|
+
OperationRequest(input=input_, options=options_),
|
|
243
|
+
handler=_handler,
|
|
244
|
+
interceptors=list(interceptors_),
|
|
245
|
+
)
|
|
246
|
+
response.response.close()
|
|
247
|
+
return response.output
|
|
248
|
+
|
|
249
|
+
def delete(
|
|
250
|
+
self,
|
|
251
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
252
|
+
*,
|
|
253
|
+
config_overrides: Optional[DevOpsAgentClientConfig] = None,
|
|
254
|
+
) -> "capo_devops_agent.types.delete_agent_space_output.DeleteAgentSpaceOutput":
|
|
255
|
+
"""<p>Deletes an AgentSpace. This operation is idempotent and returns a 204 No Content response on success.</p>
|
|
256
|
+
|
|
257
|
+
Args:
|
|
258
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
259
|
+
|
|
260
|
+
Raises:
|
|
261
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
262
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
263
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
264
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
265
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
266
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
267
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
268
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
269
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
270
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
271
|
+
"""
|
|
272
|
+
|
|
273
|
+
def _handler(
|
|
274
|
+
req: "OperationRequest[capo_devops_agent.types.delete_agent_space_input.DeleteAgentSpaceInput]",
|
|
275
|
+
) -> OperationResponse[
|
|
276
|
+
"capo_devops_agent.types.delete_agent_space_output.DeleteAgentSpaceOutput"
|
|
277
|
+
]:
|
|
278
|
+
import capo_devops_agent._operations.dev_ops_agent.delete_agent_space
|
|
279
|
+
|
|
280
|
+
output, http_response = (
|
|
281
|
+
capo_devops_agent._operations.dev_ops_agent.delete_agent_space.delete_agent_space(
|
|
282
|
+
req.options, req.input
|
|
283
|
+
)
|
|
284
|
+
)
|
|
285
|
+
return OperationResponse(output=output, response=http_response)
|
|
286
|
+
|
|
287
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
288
|
+
input_: capo_devops_agent.types.delete_agent_space_input.DeleteAgentSpaceInput = {
|
|
289
|
+
"agent_space_id": agent_space_id
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
response = execute_pipeline(
|
|
293
|
+
OperationRequest(input=input_, options=options_),
|
|
294
|
+
handler=_handler,
|
|
295
|
+
interceptors=list(interceptors_),
|
|
296
|
+
)
|
|
297
|
+
response.response.close()
|
|
298
|
+
return response.output
|
|
299
|
+
|
|
300
|
+
def disable_operator_app(
|
|
301
|
+
self,
|
|
302
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
303
|
+
*,
|
|
304
|
+
config_overrides: Optional[DevOpsAgentClientConfig] = None,
|
|
305
|
+
auth_flow: Optional["capo_devops_agent.types.auth_flow.AuthFlow"] = None,
|
|
306
|
+
) -> None:
|
|
307
|
+
"""<p>Disable the Operator App for the specified AgentSpace</p>
|
|
308
|
+
|
|
309
|
+
Args:
|
|
310
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
311
|
+
auth_flow: <p>The authentication flow configured for the operator App. e.g. idc</p>
|
|
312
|
+
|
|
313
|
+
Raises:
|
|
314
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
315
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
316
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
317
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
318
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
319
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
320
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
321
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
322
|
+
capo_devops_agent.errors.identity_center_service_exception.IdentityCenterServiceException: <p>Calls to the customer Identity Center have failed</p>
|
|
323
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
324
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
325
|
+
"""
|
|
326
|
+
|
|
327
|
+
def _handler(
|
|
328
|
+
req: "OperationRequest[capo_devops_agent.types.disable_operator_app_input.DisableOperatorAppInput]",
|
|
329
|
+
) -> OperationResponse[None]:
|
|
330
|
+
import capo_devops_agent._operations.dev_ops_agent.disable_operator_app
|
|
331
|
+
|
|
332
|
+
output, http_response = (
|
|
333
|
+
capo_devops_agent._operations.dev_ops_agent.disable_operator_app.disable_operator_app(
|
|
334
|
+
req.options, req.input
|
|
335
|
+
)
|
|
336
|
+
)
|
|
337
|
+
return OperationResponse(output=output, response=http_response)
|
|
338
|
+
|
|
339
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
340
|
+
input_: capo_devops_agent.types.disable_operator_app_input.DisableOperatorAppInput = {
|
|
341
|
+
"agent_space_id": agent_space_id
|
|
342
|
+
}
|
|
343
|
+
if auth_flow is not None:
|
|
344
|
+
input_["auth_flow"] = auth_flow
|
|
345
|
+
|
|
346
|
+
response = execute_pipeline(
|
|
347
|
+
OperationRequest(input=input_, options=options_),
|
|
348
|
+
handler=_handler,
|
|
349
|
+
interceptors=list(interceptors_),
|
|
350
|
+
)
|
|
351
|
+
response.response.close()
|
|
352
|
+
return response.output
|
|
353
|
+
|
|
354
|
+
def enable_operator_app(
|
|
355
|
+
self,
|
|
356
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
357
|
+
auth_flow: "capo_devops_agent.types.auth_flow.AuthFlow",
|
|
358
|
+
operator_app_role_arn: "capo_devops_agent.types.role_arn.RoleArn",
|
|
359
|
+
*,
|
|
360
|
+
config_overrides: Optional[DevOpsAgentClientConfig] = None,
|
|
361
|
+
idc_instance_arn: Optional[str] = None,
|
|
362
|
+
issuer_url: Optional[str] = None,
|
|
363
|
+
idp_client_id: Optional[
|
|
364
|
+
"capo_devops_agent.types.idp_client_id.IdpClientId"
|
|
365
|
+
] = None,
|
|
366
|
+
idp_client_secret: Optional[
|
|
367
|
+
"capo_devops_agent.types.idp_client_secret.IdpClientSecret"
|
|
368
|
+
] = None,
|
|
369
|
+
provider: Optional[str] = None,
|
|
370
|
+
) -> "capo_devops_agent.types.enable_operator_app_output.EnableOperatorAppOutput":
|
|
371
|
+
"""<p>Enable the Operator App to access the given AgentSpace</p>
|
|
372
|
+
|
|
373
|
+
Args:
|
|
374
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
375
|
+
auth_flow: <p>The authentication flow configured for the operator App. e.g. iam or idc</p>
|
|
376
|
+
operator_app_role_arn: <p>The IAM role end users assume to access AIDevOps APIs</p>
|
|
377
|
+
idc_instance_arn: <p>The IdC instance Arn used to create an IdC auth application</p>
|
|
378
|
+
issuer_url: <p>The OIDC issuer URL of the external Identity Provider</p>
|
|
379
|
+
idp_client_id: <p>The OIDC client ID for the IdP application</p>
|
|
380
|
+
idp_client_secret: <p>The OIDC client secret for the IdP application</p>
|
|
381
|
+
provider: <p>The Identity Provider name (e.g., Entra, Okta, Google)</p>
|
|
382
|
+
|
|
383
|
+
Raises:
|
|
384
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
385
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
386
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
387
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
388
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
389
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
390
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
391
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
392
|
+
capo_devops_agent.errors.identity_center_service_exception.IdentityCenterServiceException: <p>Calls to the customer Identity Center have failed</p>
|
|
393
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
394
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
395
|
+
"""
|
|
396
|
+
|
|
397
|
+
def _handler(
|
|
398
|
+
req: "OperationRequest[capo_devops_agent.types.enable_operator_app_input.EnableOperatorAppInput]",
|
|
399
|
+
) -> OperationResponse[
|
|
400
|
+
"capo_devops_agent.types.enable_operator_app_output.EnableOperatorAppOutput"
|
|
401
|
+
]:
|
|
402
|
+
import capo_devops_agent._operations.dev_ops_agent.enable_operator_app
|
|
403
|
+
|
|
404
|
+
output, http_response = (
|
|
405
|
+
capo_devops_agent._operations.dev_ops_agent.enable_operator_app.enable_operator_app(
|
|
406
|
+
req.options, req.input
|
|
407
|
+
)
|
|
408
|
+
)
|
|
409
|
+
return OperationResponse(output=output, response=http_response)
|
|
410
|
+
|
|
411
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
412
|
+
input_: capo_devops_agent.types.enable_operator_app_input.EnableOperatorAppInput = {
|
|
413
|
+
"agent_space_id": agent_space_id,
|
|
414
|
+
"auth_flow": auth_flow,
|
|
415
|
+
"operator_app_role_arn": operator_app_role_arn,
|
|
416
|
+
}
|
|
417
|
+
if idc_instance_arn is not None:
|
|
418
|
+
input_["idc_instance_arn"] = idc_instance_arn
|
|
419
|
+
if issuer_url is not None:
|
|
420
|
+
input_["issuer_url"] = issuer_url
|
|
421
|
+
if idp_client_id is not None:
|
|
422
|
+
input_["idp_client_id"] = idp_client_id
|
|
423
|
+
if idp_client_secret is not None:
|
|
424
|
+
input_["idp_client_secret"] = idp_client_secret
|
|
425
|
+
if provider is not None:
|
|
426
|
+
input_["provider"] = provider
|
|
427
|
+
|
|
428
|
+
response = execute_pipeline(
|
|
429
|
+
OperationRequest(input=input_, options=options_),
|
|
430
|
+
handler=_handler,
|
|
431
|
+
interceptors=list(interceptors_),
|
|
432
|
+
)
|
|
433
|
+
response.response.close()
|
|
434
|
+
return response.output
|
|
435
|
+
|
|
436
|
+
def get_operator_app(
|
|
437
|
+
self,
|
|
438
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
439
|
+
*,
|
|
440
|
+
config_overrides: Optional[DevOpsAgentClientConfig] = None,
|
|
441
|
+
) -> "capo_devops_agent.types.get_operator_app_output.GetOperatorAppOutput":
|
|
442
|
+
"""<p>Get the full auth configuration of operator including any enabled auth flow</p>
|
|
443
|
+
|
|
444
|
+
Args:
|
|
445
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
446
|
+
|
|
447
|
+
Raises:
|
|
448
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
449
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
450
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
451
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
452
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
453
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
454
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
455
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
456
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
457
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
458
|
+
"""
|
|
459
|
+
|
|
460
|
+
def _handler(
|
|
461
|
+
req: "OperationRequest[capo_devops_agent.types.get_operator_app_input.GetOperatorAppInput]",
|
|
462
|
+
) -> OperationResponse[
|
|
463
|
+
"capo_devops_agent.types.get_operator_app_output.GetOperatorAppOutput"
|
|
464
|
+
]:
|
|
465
|
+
import capo_devops_agent._operations.dev_ops_agent.get_operator_app
|
|
466
|
+
|
|
467
|
+
output, http_response = (
|
|
468
|
+
capo_devops_agent._operations.dev_ops_agent.get_operator_app.get_operator_app(
|
|
469
|
+
req.options, req.input
|
|
470
|
+
)
|
|
471
|
+
)
|
|
472
|
+
return OperationResponse(output=output, response=http_response)
|
|
473
|
+
|
|
474
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
475
|
+
input_: capo_devops_agent.types.get_operator_app_input.GetOperatorAppInput = {
|
|
476
|
+
"agent_space_id": agent_space_id
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
response = execute_pipeline(
|
|
480
|
+
OperationRequest(input=input_, options=options_),
|
|
481
|
+
handler=_handler,
|
|
482
|
+
interceptors=list(interceptors_),
|
|
483
|
+
)
|
|
484
|
+
response.response.close()
|
|
485
|
+
return response.output
|
|
486
|
+
|
|
487
|
+
def update_operator_app_idp_config(
|
|
488
|
+
self,
|
|
489
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
490
|
+
*,
|
|
491
|
+
config_overrides: Optional[DevOpsAgentClientConfig] = None,
|
|
492
|
+
idp_client_secret: Optional[
|
|
493
|
+
"capo_devops_agent.types.idp_client_secret.IdpClientSecret"
|
|
494
|
+
] = None,
|
|
495
|
+
) -> "capo_devops_agent.types.update_operator_app_idp_config_output.UpdateOperatorAppIdpConfigOutput":
|
|
496
|
+
"""<p>Update the external Identity Provider configuration for the Operator App</p>
|
|
497
|
+
|
|
498
|
+
Args:
|
|
499
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
500
|
+
idp_client_secret: <p>The OIDC client secret for the IdP application</p>
|
|
501
|
+
|
|
502
|
+
Raises:
|
|
503
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
504
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
505
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
506
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
507
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
508
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
509
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
510
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
511
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
512
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
513
|
+
"""
|
|
514
|
+
|
|
515
|
+
def _handler(
|
|
516
|
+
req: "OperationRequest[capo_devops_agent.types.update_operator_app_idp_config_input.UpdateOperatorAppIdpConfigInput]",
|
|
517
|
+
) -> OperationResponse[
|
|
518
|
+
"capo_devops_agent.types.update_operator_app_idp_config_output.UpdateOperatorAppIdpConfigOutput"
|
|
519
|
+
]:
|
|
520
|
+
import capo_devops_agent._operations.dev_ops_agent.update_operator_app_idp_config
|
|
521
|
+
|
|
522
|
+
output, http_response = (
|
|
523
|
+
capo_devops_agent._operations.dev_ops_agent.update_operator_app_idp_config.update_operator_app_idp_config(
|
|
524
|
+
req.options, req.input
|
|
525
|
+
)
|
|
526
|
+
)
|
|
527
|
+
return OperationResponse(output=output, response=http_response)
|
|
528
|
+
|
|
529
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
530
|
+
input_: capo_devops_agent.types.update_operator_app_idp_config_input.UpdateOperatorAppIdpConfigInput = {
|
|
531
|
+
"agent_space_id": agent_space_id
|
|
532
|
+
}
|
|
533
|
+
if idp_client_secret is not None:
|
|
534
|
+
input_["idp_client_secret"] = idp_client_secret
|
|
535
|
+
|
|
536
|
+
response = execute_pipeline(
|
|
537
|
+
OperationRequest(input=input_, options=options_),
|
|
538
|
+
handler=_handler,
|
|
539
|
+
interceptors=list(interceptors_),
|
|
540
|
+
)
|
|
541
|
+
response.response.close()
|
|
542
|
+
return response.output
|
|
543
|
+
|
|
544
|
+
def list_agent_spaces(
|
|
545
|
+
self,
|
|
546
|
+
*,
|
|
547
|
+
config_overrides: Optional[DevOpsAgentClientConfig] = None,
|
|
548
|
+
max_results: Optional[int] = None,
|
|
549
|
+
next_token: Optional["capo_devops_agent.types.next_token.NextToken"] = None,
|
|
550
|
+
) -> "capo_devops_agent.types.list_agent_spaces_output.ListAgentSpacesOutput":
|
|
551
|
+
"""<p>Lists all AgentSpaces with optional pagination.</p>
|
|
552
|
+
|
|
553
|
+
Args:
|
|
554
|
+
max_results: <p>Maximum number of results to return in a single call.</p>
|
|
555
|
+
next_token: <p>Token for the next page of results.</p>
|
|
556
|
+
|
|
557
|
+
Raises:
|
|
558
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
559
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
560
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
561
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
562
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
563
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
564
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
565
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
566
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
567
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
568
|
+
"""
|
|
569
|
+
|
|
570
|
+
def _handler(
|
|
571
|
+
req: "OperationRequest[capo_devops_agent.types.list_agent_spaces_input.ListAgentSpacesInput]",
|
|
572
|
+
) -> OperationResponse[
|
|
573
|
+
"capo_devops_agent.types.list_agent_spaces_output.ListAgentSpacesOutput"
|
|
574
|
+
]:
|
|
575
|
+
import capo_devops_agent._operations.dev_ops_agent.list_agent_spaces
|
|
576
|
+
|
|
577
|
+
output, http_response = (
|
|
578
|
+
capo_devops_agent._operations.dev_ops_agent.list_agent_spaces.list_agent_spaces(
|
|
579
|
+
req.options, req.input
|
|
580
|
+
)
|
|
581
|
+
)
|
|
582
|
+
return OperationResponse(output=output, response=http_response)
|
|
583
|
+
|
|
584
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
585
|
+
input_: capo_devops_agent.types.list_agent_spaces_input.ListAgentSpacesInput = {}
|
|
586
|
+
if max_results is not None:
|
|
587
|
+
input_["max_results"] = max_results
|
|
588
|
+
if next_token is not None:
|
|
589
|
+
input_["next_token"] = next_token
|
|
590
|
+
|
|
591
|
+
response = execute_pipeline(
|
|
592
|
+
OperationRequest(input=input_, options=options_),
|
|
593
|
+
handler=_handler,
|
|
594
|
+
interceptors=list(interceptors_),
|
|
595
|
+
)
|
|
596
|
+
response.response.close()
|
|
597
|
+
return response.output
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
class AsyncAgentSpaceResource:
|
|
601
|
+
def __init__(self, service: AsyncDevOpsAgentClient) -> None:
|
|
602
|
+
self._service = service
|
|
603
|
+
|
|
604
|
+
async def create(
|
|
605
|
+
self,
|
|
606
|
+
name: "capo_devops_agent.types.agent_space_name.AgentSpaceName",
|
|
607
|
+
*,
|
|
608
|
+
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
|
|
609
|
+
description: Optional["capo_devops_agent.types.description.Description"] = None,
|
|
610
|
+
locale: Optional["capo_devops_agent.types.locale.Locale"] = None,
|
|
611
|
+
kms_key_arn: Optional["capo_devops_agent.types.kms_key_arn.KmsKeyArn"] = None,
|
|
612
|
+
client_token: Optional[str] = None,
|
|
613
|
+
tags: Optional["capo_devops_agent.types.tags.Tags"] = None,
|
|
614
|
+
) -> "capo_devops_agent.types.create_agent_space_output.CreateAgentSpaceOutput":
|
|
615
|
+
"""<p>Creates a new AgentSpace with the specified name and description. Duplicate space names are allowed.</p>
|
|
616
|
+
|
|
617
|
+
Args:
|
|
618
|
+
name: <p>The name of the AgentSpace.</p>
|
|
619
|
+
description: <p>The description of the AgentSpace.</p>
|
|
620
|
+
locale: <p>The locale for the AgentSpace, which determines the language used in agent responses.</p>
|
|
621
|
+
kms_key_arn: <p>The ARN of the AWS Key Management Service (AWS KMS) customer managed key that's used to encrypt resources.</p>
|
|
622
|
+
client_token: <p>Client-provided token to ensure request idempotency. When the same token is provided in subsequent calls, the same response is returned within a 8-hour window.</p>
|
|
623
|
+
tags: <p>Tags to add to the AgentSpace at creation time.</p>
|
|
624
|
+
|
|
625
|
+
Raises:
|
|
626
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
627
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
628
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
629
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
630
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
631
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
632
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
633
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
634
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
635
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
636
|
+
"""
|
|
637
|
+
|
|
638
|
+
async def _handler(
|
|
639
|
+
req: "AsyncOperationRequest[capo_devops_agent.types.create_agent_space_input.CreateAgentSpaceInput]",
|
|
640
|
+
) -> AsyncOperationResponse[
|
|
641
|
+
"capo_devops_agent.types.create_agent_space_output.CreateAgentSpaceOutput"
|
|
642
|
+
]:
|
|
643
|
+
import capo_devops_agent._operations.dev_ops_agent.create_agent_space
|
|
644
|
+
|
|
645
|
+
(
|
|
646
|
+
output,
|
|
647
|
+
http_response,
|
|
648
|
+
) = await capo_devops_agent._operations.dev_ops_agent.create_agent_space.async_create_agent_space(
|
|
649
|
+
req.options, req.input
|
|
650
|
+
)
|
|
651
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
652
|
+
|
|
653
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
654
|
+
input_: capo_devops_agent.types.create_agent_space_input.CreateAgentSpaceInput = {
|
|
655
|
+
"name": name
|
|
656
|
+
}
|
|
657
|
+
if description is not None:
|
|
658
|
+
input_["description"] = description
|
|
659
|
+
if locale is not None:
|
|
660
|
+
input_["locale"] = locale
|
|
661
|
+
if kms_key_arn is not None:
|
|
662
|
+
input_["kms_key_arn"] = kms_key_arn
|
|
663
|
+
if client_token is None:
|
|
664
|
+
client_token = str(uuid.uuid4())
|
|
665
|
+
input_["client_token"] = client_token
|
|
666
|
+
if tags is not None:
|
|
667
|
+
input_["tags"] = tags
|
|
668
|
+
|
|
669
|
+
response = await aexecute_pipeline(
|
|
670
|
+
AsyncOperationRequest(input=input_, options=options_),
|
|
671
|
+
handler=_handler,
|
|
672
|
+
interceptors=list(interceptors_),
|
|
673
|
+
)
|
|
674
|
+
await response.response.aclose()
|
|
675
|
+
return response.output
|
|
676
|
+
|
|
677
|
+
async def read(
|
|
678
|
+
self,
|
|
679
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
680
|
+
*,
|
|
681
|
+
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
|
|
682
|
+
) -> "capo_devops_agent.types.get_agent_space_output.GetAgentSpaceOutput":
|
|
683
|
+
"""<p>Retrieves detailed information about a specific AgentSpace.</p>
|
|
684
|
+
|
|
685
|
+
Args:
|
|
686
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
687
|
+
|
|
688
|
+
Raises:
|
|
689
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
690
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
691
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
692
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
693
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
694
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
695
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
696
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
697
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
698
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
699
|
+
"""
|
|
700
|
+
|
|
701
|
+
async def _handler(
|
|
702
|
+
req: "AsyncOperationRequest[capo_devops_agent.types.get_agent_space_input.GetAgentSpaceInput]",
|
|
703
|
+
) -> AsyncOperationResponse[
|
|
704
|
+
"capo_devops_agent.types.get_agent_space_output.GetAgentSpaceOutput"
|
|
705
|
+
]:
|
|
706
|
+
import capo_devops_agent._operations.dev_ops_agent.get_agent_space
|
|
707
|
+
|
|
708
|
+
(
|
|
709
|
+
output,
|
|
710
|
+
http_response,
|
|
711
|
+
) = await capo_devops_agent._operations.dev_ops_agent.get_agent_space.async_get_agent_space(
|
|
712
|
+
req.options, req.input
|
|
713
|
+
)
|
|
714
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
715
|
+
|
|
716
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
717
|
+
input_: capo_devops_agent.types.get_agent_space_input.GetAgentSpaceInput = {
|
|
718
|
+
"agent_space_id": agent_space_id
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
response = await aexecute_pipeline(
|
|
722
|
+
AsyncOperationRequest(input=input_, options=options_),
|
|
723
|
+
handler=_handler,
|
|
724
|
+
interceptors=list(interceptors_),
|
|
725
|
+
)
|
|
726
|
+
await response.response.aclose()
|
|
727
|
+
return response.output
|
|
728
|
+
|
|
729
|
+
async def update(
|
|
730
|
+
self,
|
|
731
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
732
|
+
*,
|
|
733
|
+
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
|
|
734
|
+
name: Optional[
|
|
735
|
+
"capo_devops_agent.types.agent_space_name.AgentSpaceName"
|
|
736
|
+
] = None,
|
|
737
|
+
description: Optional["capo_devops_agent.types.description.Description"] = None,
|
|
738
|
+
locale: Optional["capo_devops_agent.types.locale.Locale"] = None,
|
|
739
|
+
) -> "capo_devops_agent.types.update_agent_space_output.UpdateAgentSpaceOutput":
|
|
740
|
+
"""<p>Updates the information of an existing AgentSpace.</p>
|
|
741
|
+
|
|
742
|
+
Args:
|
|
743
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
744
|
+
name: <p>The updated name of the AgentSpace.</p>
|
|
745
|
+
description: <p>The updated description of the AgentSpace.</p>
|
|
746
|
+
locale: <p>The updated locale for the AgentSpace, which determines the language used in agent responses.</p>
|
|
747
|
+
|
|
748
|
+
Raises:
|
|
749
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
750
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
751
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
752
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
753
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
754
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
755
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
756
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
757
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
758
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
759
|
+
"""
|
|
760
|
+
|
|
761
|
+
async def _handler(
|
|
762
|
+
req: "AsyncOperationRequest[capo_devops_agent.types.update_agent_space_input.UpdateAgentSpaceInput]",
|
|
763
|
+
) -> AsyncOperationResponse[
|
|
764
|
+
"capo_devops_agent.types.update_agent_space_output.UpdateAgentSpaceOutput"
|
|
765
|
+
]:
|
|
766
|
+
import capo_devops_agent._operations.dev_ops_agent.update_agent_space
|
|
767
|
+
|
|
768
|
+
(
|
|
769
|
+
output,
|
|
770
|
+
http_response,
|
|
771
|
+
) = await capo_devops_agent._operations.dev_ops_agent.update_agent_space.async_update_agent_space(
|
|
772
|
+
req.options, req.input
|
|
773
|
+
)
|
|
774
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
775
|
+
|
|
776
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
777
|
+
input_: capo_devops_agent.types.update_agent_space_input.UpdateAgentSpaceInput = {
|
|
778
|
+
"agent_space_id": agent_space_id
|
|
779
|
+
}
|
|
780
|
+
if name is not None:
|
|
781
|
+
input_["name"] = name
|
|
782
|
+
if description is not None:
|
|
783
|
+
input_["description"] = description
|
|
784
|
+
if locale is not None:
|
|
785
|
+
input_["locale"] = locale
|
|
786
|
+
|
|
787
|
+
response = await aexecute_pipeline(
|
|
788
|
+
AsyncOperationRequest(input=input_, options=options_),
|
|
789
|
+
handler=_handler,
|
|
790
|
+
interceptors=list(interceptors_),
|
|
791
|
+
)
|
|
792
|
+
await response.response.aclose()
|
|
793
|
+
return response.output
|
|
794
|
+
|
|
795
|
+
async def delete(
|
|
796
|
+
self,
|
|
797
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
798
|
+
*,
|
|
799
|
+
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
|
|
800
|
+
) -> "capo_devops_agent.types.delete_agent_space_output.DeleteAgentSpaceOutput":
|
|
801
|
+
"""<p>Deletes an AgentSpace. This operation is idempotent and returns a 204 No Content response on success.</p>
|
|
802
|
+
|
|
803
|
+
Args:
|
|
804
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
805
|
+
|
|
806
|
+
Raises:
|
|
807
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
808
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
809
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
810
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
811
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
812
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
813
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
814
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
815
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
816
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
817
|
+
"""
|
|
818
|
+
|
|
819
|
+
async def _handler(
|
|
820
|
+
req: "AsyncOperationRequest[capo_devops_agent.types.delete_agent_space_input.DeleteAgentSpaceInput]",
|
|
821
|
+
) -> AsyncOperationResponse[
|
|
822
|
+
"capo_devops_agent.types.delete_agent_space_output.DeleteAgentSpaceOutput"
|
|
823
|
+
]:
|
|
824
|
+
import capo_devops_agent._operations.dev_ops_agent.delete_agent_space
|
|
825
|
+
|
|
826
|
+
(
|
|
827
|
+
output,
|
|
828
|
+
http_response,
|
|
829
|
+
) = await capo_devops_agent._operations.dev_ops_agent.delete_agent_space.async_delete_agent_space(
|
|
830
|
+
req.options, req.input
|
|
831
|
+
)
|
|
832
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
833
|
+
|
|
834
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
835
|
+
input_: capo_devops_agent.types.delete_agent_space_input.DeleteAgentSpaceInput = {
|
|
836
|
+
"agent_space_id": agent_space_id
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
response = await aexecute_pipeline(
|
|
840
|
+
AsyncOperationRequest(input=input_, options=options_),
|
|
841
|
+
handler=_handler,
|
|
842
|
+
interceptors=list(interceptors_),
|
|
843
|
+
)
|
|
844
|
+
await response.response.aclose()
|
|
845
|
+
return response.output
|
|
846
|
+
|
|
847
|
+
async def disable_operator_app(
|
|
848
|
+
self,
|
|
849
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
850
|
+
*,
|
|
851
|
+
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
|
|
852
|
+
auth_flow: Optional["capo_devops_agent.types.auth_flow.AuthFlow"] = None,
|
|
853
|
+
) -> None:
|
|
854
|
+
"""<p>Disable the Operator App for the specified AgentSpace</p>
|
|
855
|
+
|
|
856
|
+
Args:
|
|
857
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
858
|
+
auth_flow: <p>The authentication flow configured for the operator App. e.g. idc</p>
|
|
859
|
+
|
|
860
|
+
Raises:
|
|
861
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
862
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
863
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
864
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
865
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
866
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
867
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
868
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
869
|
+
capo_devops_agent.errors.identity_center_service_exception.IdentityCenterServiceException: <p>Calls to the customer Identity Center have failed</p>
|
|
870
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
871
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
872
|
+
"""
|
|
873
|
+
|
|
874
|
+
async def _handler(
|
|
875
|
+
req: "AsyncOperationRequest[capo_devops_agent.types.disable_operator_app_input.DisableOperatorAppInput]",
|
|
876
|
+
) -> AsyncOperationResponse[None]:
|
|
877
|
+
import capo_devops_agent._operations.dev_ops_agent.disable_operator_app
|
|
878
|
+
|
|
879
|
+
(
|
|
880
|
+
output,
|
|
881
|
+
http_response,
|
|
882
|
+
) = await capo_devops_agent._operations.dev_ops_agent.disable_operator_app.async_disable_operator_app(
|
|
883
|
+
req.options, req.input
|
|
884
|
+
)
|
|
885
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
886
|
+
|
|
887
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
888
|
+
input_: capo_devops_agent.types.disable_operator_app_input.DisableOperatorAppInput = {
|
|
889
|
+
"agent_space_id": agent_space_id
|
|
890
|
+
}
|
|
891
|
+
if auth_flow is not None:
|
|
892
|
+
input_["auth_flow"] = auth_flow
|
|
893
|
+
|
|
894
|
+
response = await aexecute_pipeline(
|
|
895
|
+
AsyncOperationRequest(input=input_, options=options_),
|
|
896
|
+
handler=_handler,
|
|
897
|
+
interceptors=list(interceptors_),
|
|
898
|
+
)
|
|
899
|
+
await response.response.aclose()
|
|
900
|
+
return response.output
|
|
901
|
+
|
|
902
|
+
async def enable_operator_app(
|
|
903
|
+
self,
|
|
904
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
905
|
+
auth_flow: "capo_devops_agent.types.auth_flow.AuthFlow",
|
|
906
|
+
operator_app_role_arn: "capo_devops_agent.types.role_arn.RoleArn",
|
|
907
|
+
*,
|
|
908
|
+
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
|
|
909
|
+
idc_instance_arn: Optional[str] = None,
|
|
910
|
+
issuer_url: Optional[str] = None,
|
|
911
|
+
idp_client_id: Optional[
|
|
912
|
+
"capo_devops_agent.types.idp_client_id.IdpClientId"
|
|
913
|
+
] = None,
|
|
914
|
+
idp_client_secret: Optional[
|
|
915
|
+
"capo_devops_agent.types.idp_client_secret.IdpClientSecret"
|
|
916
|
+
] = None,
|
|
917
|
+
provider: Optional[str] = None,
|
|
918
|
+
) -> "capo_devops_agent.types.enable_operator_app_output.EnableOperatorAppOutput":
|
|
919
|
+
"""<p>Enable the Operator App to access the given AgentSpace</p>
|
|
920
|
+
|
|
921
|
+
Args:
|
|
922
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
923
|
+
auth_flow: <p>The authentication flow configured for the operator App. e.g. iam or idc</p>
|
|
924
|
+
operator_app_role_arn: <p>The IAM role end users assume to access AIDevOps APIs</p>
|
|
925
|
+
idc_instance_arn: <p>The IdC instance Arn used to create an IdC auth application</p>
|
|
926
|
+
issuer_url: <p>The OIDC issuer URL of the external Identity Provider</p>
|
|
927
|
+
idp_client_id: <p>The OIDC client ID for the IdP application</p>
|
|
928
|
+
idp_client_secret: <p>The OIDC client secret for the IdP application</p>
|
|
929
|
+
provider: <p>The Identity Provider name (e.g., Entra, Okta, Google)</p>
|
|
930
|
+
|
|
931
|
+
Raises:
|
|
932
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
933
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
934
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
935
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
936
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
937
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
938
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
939
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
940
|
+
capo_devops_agent.errors.identity_center_service_exception.IdentityCenterServiceException: <p>Calls to the customer Identity Center have failed</p>
|
|
941
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
942
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
943
|
+
"""
|
|
944
|
+
|
|
945
|
+
async def _handler(
|
|
946
|
+
req: "AsyncOperationRequest[capo_devops_agent.types.enable_operator_app_input.EnableOperatorAppInput]",
|
|
947
|
+
) -> AsyncOperationResponse[
|
|
948
|
+
"capo_devops_agent.types.enable_operator_app_output.EnableOperatorAppOutput"
|
|
949
|
+
]:
|
|
950
|
+
import capo_devops_agent._operations.dev_ops_agent.enable_operator_app
|
|
951
|
+
|
|
952
|
+
(
|
|
953
|
+
output,
|
|
954
|
+
http_response,
|
|
955
|
+
) = await capo_devops_agent._operations.dev_ops_agent.enable_operator_app.async_enable_operator_app(
|
|
956
|
+
req.options, req.input
|
|
957
|
+
)
|
|
958
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
959
|
+
|
|
960
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
961
|
+
input_: capo_devops_agent.types.enable_operator_app_input.EnableOperatorAppInput = {
|
|
962
|
+
"agent_space_id": agent_space_id,
|
|
963
|
+
"auth_flow": auth_flow,
|
|
964
|
+
"operator_app_role_arn": operator_app_role_arn,
|
|
965
|
+
}
|
|
966
|
+
if idc_instance_arn is not None:
|
|
967
|
+
input_["idc_instance_arn"] = idc_instance_arn
|
|
968
|
+
if issuer_url is not None:
|
|
969
|
+
input_["issuer_url"] = issuer_url
|
|
970
|
+
if idp_client_id is not None:
|
|
971
|
+
input_["idp_client_id"] = idp_client_id
|
|
972
|
+
if idp_client_secret is not None:
|
|
973
|
+
input_["idp_client_secret"] = idp_client_secret
|
|
974
|
+
if provider is not None:
|
|
975
|
+
input_["provider"] = provider
|
|
976
|
+
|
|
977
|
+
response = await aexecute_pipeline(
|
|
978
|
+
AsyncOperationRequest(input=input_, options=options_),
|
|
979
|
+
handler=_handler,
|
|
980
|
+
interceptors=list(interceptors_),
|
|
981
|
+
)
|
|
982
|
+
await response.response.aclose()
|
|
983
|
+
return response.output
|
|
984
|
+
|
|
985
|
+
async def get_operator_app(
|
|
986
|
+
self,
|
|
987
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
988
|
+
*,
|
|
989
|
+
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
|
|
990
|
+
) -> "capo_devops_agent.types.get_operator_app_output.GetOperatorAppOutput":
|
|
991
|
+
"""<p>Get the full auth configuration of operator including any enabled auth flow</p>
|
|
992
|
+
|
|
993
|
+
Args:
|
|
994
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
995
|
+
|
|
996
|
+
Raises:
|
|
997
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
998
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
999
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
1000
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
1001
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
1002
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
1003
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
1004
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
1005
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
1006
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
1007
|
+
"""
|
|
1008
|
+
|
|
1009
|
+
async def _handler(
|
|
1010
|
+
req: "AsyncOperationRequest[capo_devops_agent.types.get_operator_app_input.GetOperatorAppInput]",
|
|
1011
|
+
) -> AsyncOperationResponse[
|
|
1012
|
+
"capo_devops_agent.types.get_operator_app_output.GetOperatorAppOutput"
|
|
1013
|
+
]:
|
|
1014
|
+
import capo_devops_agent._operations.dev_ops_agent.get_operator_app
|
|
1015
|
+
|
|
1016
|
+
(
|
|
1017
|
+
output,
|
|
1018
|
+
http_response,
|
|
1019
|
+
) = await capo_devops_agent._operations.dev_ops_agent.get_operator_app.async_get_operator_app(
|
|
1020
|
+
req.options, req.input
|
|
1021
|
+
)
|
|
1022
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
1023
|
+
|
|
1024
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
1025
|
+
input_: capo_devops_agent.types.get_operator_app_input.GetOperatorAppInput = {
|
|
1026
|
+
"agent_space_id": agent_space_id
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
response = await aexecute_pipeline(
|
|
1030
|
+
AsyncOperationRequest(input=input_, options=options_),
|
|
1031
|
+
handler=_handler,
|
|
1032
|
+
interceptors=list(interceptors_),
|
|
1033
|
+
)
|
|
1034
|
+
await response.response.aclose()
|
|
1035
|
+
return response.output
|
|
1036
|
+
|
|
1037
|
+
async def update_operator_app_idp_config(
|
|
1038
|
+
self,
|
|
1039
|
+
agent_space_id: "capo_devops_agent.types.agent_space_id.AgentSpaceId",
|
|
1040
|
+
*,
|
|
1041
|
+
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
|
|
1042
|
+
idp_client_secret: Optional[
|
|
1043
|
+
"capo_devops_agent.types.idp_client_secret.IdpClientSecret"
|
|
1044
|
+
] = None,
|
|
1045
|
+
) -> "capo_devops_agent.types.update_operator_app_idp_config_output.UpdateOperatorAppIdpConfigOutput":
|
|
1046
|
+
"""<p>Update the external Identity Provider configuration for the Operator App</p>
|
|
1047
|
+
|
|
1048
|
+
Args:
|
|
1049
|
+
agent_space_id: <p>The unique identifier of the AgentSpace</p>
|
|
1050
|
+
idp_client_secret: <p>The OIDC client secret for the IdP application</p>
|
|
1051
|
+
|
|
1052
|
+
Raises:
|
|
1053
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
1054
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
1055
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
1056
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
1057
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
1058
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
1059
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
1060
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
1061
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
1062
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
1063
|
+
"""
|
|
1064
|
+
|
|
1065
|
+
async def _handler(
|
|
1066
|
+
req: "AsyncOperationRequest[capo_devops_agent.types.update_operator_app_idp_config_input.UpdateOperatorAppIdpConfigInput]",
|
|
1067
|
+
) -> AsyncOperationResponse[
|
|
1068
|
+
"capo_devops_agent.types.update_operator_app_idp_config_output.UpdateOperatorAppIdpConfigOutput"
|
|
1069
|
+
]:
|
|
1070
|
+
import capo_devops_agent._operations.dev_ops_agent.update_operator_app_idp_config
|
|
1071
|
+
|
|
1072
|
+
(
|
|
1073
|
+
output,
|
|
1074
|
+
http_response,
|
|
1075
|
+
) = await capo_devops_agent._operations.dev_ops_agent.update_operator_app_idp_config.async_update_operator_app_idp_config(
|
|
1076
|
+
req.options, req.input
|
|
1077
|
+
)
|
|
1078
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
1079
|
+
|
|
1080
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
1081
|
+
input_: capo_devops_agent.types.update_operator_app_idp_config_input.UpdateOperatorAppIdpConfigInput = {
|
|
1082
|
+
"agent_space_id": agent_space_id
|
|
1083
|
+
}
|
|
1084
|
+
if idp_client_secret is not None:
|
|
1085
|
+
input_["idp_client_secret"] = idp_client_secret
|
|
1086
|
+
|
|
1087
|
+
response = await aexecute_pipeline(
|
|
1088
|
+
AsyncOperationRequest(input=input_, options=options_),
|
|
1089
|
+
handler=_handler,
|
|
1090
|
+
interceptors=list(interceptors_),
|
|
1091
|
+
)
|
|
1092
|
+
await response.response.aclose()
|
|
1093
|
+
return response.output
|
|
1094
|
+
|
|
1095
|
+
async def list_agent_spaces(
|
|
1096
|
+
self,
|
|
1097
|
+
*,
|
|
1098
|
+
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
|
|
1099
|
+
max_results: Optional[int] = None,
|
|
1100
|
+
next_token: Optional["capo_devops_agent.types.next_token.NextToken"] = None,
|
|
1101
|
+
) -> "capo_devops_agent.types.list_agent_spaces_output.ListAgentSpacesOutput":
|
|
1102
|
+
"""<p>Lists all AgentSpaces with optional pagination.</p>
|
|
1103
|
+
|
|
1104
|
+
Args:
|
|
1105
|
+
max_results: <p>Maximum number of results to return in a single call.</p>
|
|
1106
|
+
next_token: <p>Token for the next page of results.</p>
|
|
1107
|
+
|
|
1108
|
+
Raises:
|
|
1109
|
+
capo_devops_agent.errors.access_denied_exception.AccessDeniedException: <p>Access to the requested resource is denied due to insufficient permissions.</p>
|
|
1110
|
+
capo_devops_agent.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
|
|
1111
|
+
capo_devops_agent.errors.content_size_exceeded_exception.ContentSizeExceededException: <p>This exception is thrown when the content size exceeds the allowed limit.</p>
|
|
1112
|
+
capo_devops_agent.errors.internal_server_exception.InternalServerException: <p>This exception is thrown when an unexpected error occurs in the processing of a request.</p>
|
|
1113
|
+
capo_devops_agent.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters provided in the request are invalid.</p>
|
|
1114
|
+
capo_devops_agent.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
|
|
1115
|
+
capo_devops_agent.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed the service quota limit.</p>
|
|
1116
|
+
capo_devops_agent.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please slow down and try again.</p>
|
|
1117
|
+
capo_devops_agent.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
1118
|
+
capo_devops_agent.errors.UnknownServiceError: The service returned an error code this client does not model.
|
|
1119
|
+
"""
|
|
1120
|
+
|
|
1121
|
+
async def _handler(
|
|
1122
|
+
req: "AsyncOperationRequest[capo_devops_agent.types.list_agent_spaces_input.ListAgentSpacesInput]",
|
|
1123
|
+
) -> AsyncOperationResponse[
|
|
1124
|
+
"capo_devops_agent.types.list_agent_spaces_output.ListAgentSpacesOutput"
|
|
1125
|
+
]:
|
|
1126
|
+
import capo_devops_agent._operations.dev_ops_agent.list_agent_spaces
|
|
1127
|
+
|
|
1128
|
+
(
|
|
1129
|
+
output,
|
|
1130
|
+
http_response,
|
|
1131
|
+
) = await capo_devops_agent._operations.dev_ops_agent.list_agent_spaces.async_list_agent_spaces(
|
|
1132
|
+
req.options, req.input
|
|
1133
|
+
)
|
|
1134
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
1135
|
+
|
|
1136
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
1137
|
+
input_: capo_devops_agent.types.list_agent_spaces_input.ListAgentSpacesInput = {}
|
|
1138
|
+
if max_results is not None:
|
|
1139
|
+
input_["max_results"] = max_results
|
|
1140
|
+
if next_token is not None:
|
|
1141
|
+
input_["next_token"] = next_token
|
|
1142
|
+
|
|
1143
|
+
response = await aexecute_pipeline(
|
|
1144
|
+
AsyncOperationRequest(input=input_, options=options_),
|
|
1145
|
+
handler=_handler,
|
|
1146
|
+
interceptors=list(interceptors_),
|
|
1147
|
+
)
|
|
1148
|
+
await response.response.aclose()
|
|
1149
|
+
return response.output
|