create_service_instance
async
¶
create_service_instance(
name: ResourceName,
service_name: ResourceName,
spec: SpecContents,
*,
config_overrides: Optional[AsyncProtonClientConfig] = None,
template_major_version: Optional[TemplateVersionPart] = None,
template_minor_version: Optional[TemplateVersionPart] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientToken] = None,
) -> CreateServiceInstanceOutput
Create a service instance.
Parameters:
-
name(ResourceName) –The name of the service instance to create.
-
service_name(ResourceName) –The name of the service the service instance is added to.
-
spec(SpecContents) –The spec for the service instance you want to create.
-
template_major_version(Optional[TemplateVersionPart], default:None) –To create a new major and minor version of the service template, exclude
major Version. -
template_minor_version(Optional[TemplateVersionPart], default:None) –To create a new minor version of the service template, include a
major Version. -
tags(Optional[TagList], default:None) –An optional list of metadata items that you can associate with the Proton service instance. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
-
client_token(Optional[ClientToken], default:None) –The client token of the service instance to create.
Raises:
-
AccessDeniedException–There isn't sufficient access for performing this action.
-
ConflictException–The request couldn't be made due to a conflicting operation or resource.
-
InternalServerException–The request failed to register with the service.
-
ResourceNotFoundException–The requested resource wasn't found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input is invalid or an out-of-range value was supplied for the input parameter.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_proton/_services/async_proton.py
4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 | |