create_service_instance
¶
create_service_instance(
name: ResourceName,
service_name: ResourceName,
spec: SpecContents,
*,
config_overrides: Optional[ProtonClientConfig] = 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/proton.py
4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 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 | |