Creates a Quick Setup configuration manager resource. This object is a collection of desired state configurations for multiple configuration definitions and summaries describing the deployments of those definitions.
Parameters:
-
name
(Optional[str], default:
None
)
–
A name for the configuration manager.
-
description
(Optional[str], default:
None
)
–
A description of the configuration manager.
-
configuration_definitions
(ConfigurationDefinitionsInputList)
–
The definition of the Quick Setup configuration that the configuration manager deploys.
-
tags
(Optional[TagsMap], default:
None
)
–
Key-value pairs of metadata to assign to the configuration manager.
Raises:
-
AccessDeniedException
–
The requester has insufficient permissions to perform the operation.
-
ConflictException
–
Another request is being processed. Wait a few minutes and try again.
-
InternalServerException
–
An error occurred on the server side.
-
ThrottlingException
–
The request or operation exceeds the maximum allowed request rate per Amazon Web Services account and Amazon Web Services Region.
-
ValidationException
–
The request is invalid. Verify the values provided for the request parameters are accurate.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_ssm_quicksetup/_services/ssm_quick_setup.py
| def create_configuration_manager(
self,
configuration_definitions: "capo_ssm_quicksetup.types.configuration_definitions_input_list.ConfigurationDefinitionsInputList",
*,
config_overrides: Optional[SSMQuickSetupClientConfig] = None,
name: Optional[str] = None,
description: Optional[str] = None,
tags: Optional["capo_ssm_quicksetup.types.tags_map.TagsMap"] = None,
) -> "capo_ssm_quicksetup.types.create_configuration_manager_output.CreateConfigurationManagerOutput":
"""<p>Creates a Quick Setup configuration manager resource. This object is a collection of desired state configurations for multiple configuration definitions and summaries describing the deployments of those definitions.</p>
Args:
name: <p>A name for the configuration manager.</p>
description: <p>A description of the configuration manager.</p>
configuration_definitions: <p>The definition of the Quick Setup configuration that the configuration manager deploys.</p>
tags: <p>Key-value pairs of metadata to assign to the configuration manager.</p>
Raises:
capo_ssm_quicksetup.errors.access_denied_exception.AccessDeniedException: <p>The requester has insufficient permissions to perform the operation.</p>
capo_ssm_quicksetup.errors.conflict_exception.ConflictException: <p>Another request is being processed. Wait a few minutes and try again.</p>
capo_ssm_quicksetup.errors.internal_server_exception.InternalServerException: <p>An error occurred on the server side.</p>
capo_ssm_quicksetup.errors.throttling_exception.ThrottlingException: <p>The request or operation exceeds the maximum allowed request rate per Amazon Web Services account and Amazon Web Services Region.</p>
capo_ssm_quicksetup.errors.validation_exception.ValidationException: <p>The request is invalid. Verify the values provided for the request parameters are accurate.</p>
capo_ssm_quicksetup.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ssm_quicksetup.types.create_configuration_manager_input.CreateConfigurationManagerInput]",
) -> OperationResponse[
"capo_ssm_quicksetup.types.create_configuration_manager_output.CreateConfigurationManagerOutput"
]:
import capo_ssm_quicksetup._operations.quick_setup.create_configuration_manager
output, http_response = (
capo_ssm_quicksetup._operations.quick_setup.create_configuration_manager.create_configuration_manager(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
def _redact_input(
input_: "capo_ssm_quicksetup.types.create_configuration_manager_input.CreateConfigurationManagerInput",
) -> dict[str, Any]:
import capo_ssm_quicksetup.types.create_configuration_manager_input
return capo_ssm_quicksetup.types.create_configuration_manager_input.redact_sensitive(
input_
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("CreateConfigurationManager", redact_input=_redact_input),
)
input_: capo_ssm_quicksetup.types.create_configuration_manager_input.CreateConfigurationManagerInput = {
"configuration_definitions": configuration_definitions
}
if name is not None:
input_["name"] = name
if description is not None:
input_["description"] = description
if tags is not None:
input_["tags"] = tags
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|