create_security_profile
¶
create_security_profile(
security_profile_name: CreateSecurityProfileName,
instance_id: InstanceId,
*,
config_overrides: Optional[ConnectClientConfig] = None,
description: Optional[SecurityProfileDescription] = None,
permissions: Optional[PermissionsList] = None,
tags: Optional[TagMap] = None,
allowed_access_control_tags: Optional[AllowedAccessControlTags] = None,
tag_restricted_resources: Optional[TagRestrictedResourceList] = None,
applications: Optional[Applications] = None,
hierarchy_restricted_resources: Optional[HierarchyRestrictedResourceList] = None,
allowed_access_control_hierarchy_group_id: Optional[HierarchyGroupId] = None,
allowed_flow_modules: Optional[AllowedFlowModules] = None,
allowed_ai_agents: Optional[AllowedAIAgents] = None,
granular_access_control_configuration: Optional[
GranularAccessControlConfiguration
] = None,
) -> CreateSecurityProfileResponse
Creates a security profile.
For information about security profiles, see Security Profiles in the Connect Customer Administrator Guide. For a mapping of the API name and user interface name of the security profile permissions, see List of security profile permissions.
Parameters:
-
security_profile_name(CreateSecurityProfileName) –The name of the security profile.
-
description(Optional[SecurityProfileDescription], default:None) –The description of the security profile.
-
permissions(Optional[PermissionsList], default:None) –Permissions assigned to the security profile. For a list of valid permissions, see List of security profile permissions.
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
-
allowed_access_control_tags(Optional[AllowedAccessControlTags], default:None) –The list of tags that a security profile uses to restrict access to resources in Connect Customer.
-
tag_restricted_resources(Optional[TagRestrictedResourceList], default:None) –The list of resources that a security profile applies tag restrictions to in Connect Customer. For a list of Connect Customer resources that you can tag, see Add tags to resources in Connect Customer in the Connect Customer Administrator Guide.
-
applications(Optional[Applications], default:None) –A list of third-party applications or MCP Servers that the security profile will give access to.
-
hierarchy_restricted_resources(Optional[HierarchyRestrictedResourceList], default:None) –The list of resources that a security profile applies hierarchy restrictions to in Connect Customer. Following are acceptable ResourceNames:
User. -
allowed_access_control_hierarchy_group_id(Optional[HierarchyGroupId], default:None) –The identifier of the hierarchy group that a security profile uses to restrict access to resources in Connect Customer.
-
allowed_flow_modules(Optional[AllowedFlowModules], default:None) –A list of Flow Modules an AI Agent can invoke as a tool.
-
allowed_ai_agents(Optional[AllowedAIAgents], default:None) –A list of AI agents that the security profile will give access to.
-
granular_access_control_configuration(Optional[GranularAccessControlConfiguration], default:None) –The granular access control configuration for the security profile, including data table permissions.
Raises:
-
DuplicateResourceException–A resource with the specified name already exists.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–The allowed limit for the resource has been exceeded.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 | |