/AWS1/IF_CNT=>CREATESECURITYPROFILE()¶
About CreateSecurityProfile¶
Creates a security profile.
For information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. For a mapping of the API name and user interface name of the security profile permissions, see List of security profile permissions.
Method Signature¶
METHODS /AWS1/IF_CNT~CREATESECURITYPROFILE
IMPORTING
!IV_SECURITYPROFILENAME TYPE /AWS1/CNTCREATESECPROFILENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/CNTSECURITYPROFILEDESC OPTIONAL
!IT_PERMISSIONS TYPE /AWS1/CL_CNTPERMISSIONSLIST_W=>TT_PERMISSIONSLIST OPTIONAL
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID OPTIONAL
!IT_TAGS TYPE /AWS1/CL_CNTTAGMAP_W=>TT_TAGMAP OPTIONAL
!IT_ALLOWEDACCESSCONTROLTAGS TYPE /AWS1/CL_CNTALLOWEDACCCTLTGS_W=>TT_ALLOWEDACCESSCONTROLTAGS OPTIONAL
!IT_TAGRESTRICTEDRESOURCES TYPE /AWS1/CL_CNTTAGRESTRICTEDRES00=>TT_TAGRESTRICTEDRESOURCELIST OPTIONAL
!IT_APPLICATIONS TYPE /AWS1/CL_CNTAPPLICATION=>TT_APPLICATIONS OPTIONAL
!IT_HIERARCHYRESTRICTEDRESRCS TYPE /AWS1/CL_CNTHIERARCHYRESTRIC00=>TT_HIERARCHYRESTRICTEDRESRCLST OPTIONAL
!IV_ALWEDACCCTLHIERARCHYGRPID TYPE /AWS1/CNTHIERARCHYGROUPID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntcreatesecpflrsp
RAISING
/AWS1/CX_CNTDUPLICATERESRCEX
/AWS1/CX_CNTINTERNALSERVICEEX
/AWS1/CX_CNTINVALIDPARAMETEREX
/AWS1/CX_CNTINVALIDREQUESTEX
/AWS1/CX_CNTLIMITEXCEEDEDEX
/AWS1/CX_CNTRESOURCENOTFOUNDEX
/AWS1/CX_CNTTHROTTLINGEX
/AWS1/CX_CNTCLIENTEXC
/AWS1/CX_CNTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_securityprofilename TYPE /AWS1/CNTCREATESECPROFILENAME /AWS1/CNTCREATESECPROFILENAME¶
The name of the security profile.
iv_instanceid TYPE /AWS1/CNTINSTANCEID /AWS1/CNTINSTANCEID¶
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Optional arguments:¶
iv_description TYPE /AWS1/CNTSECURITYPROFILEDESC /AWS1/CNTSECURITYPROFILEDESC¶
The description of the security profile.
it_permissions TYPE /AWS1/CL_CNTPERMISSIONSLIST_W=>TT_PERMISSIONSLIST TT_PERMISSIONSLIST¶
Permissions assigned to the security profile. For a list of valid permissions, see List of security profile permissions.
it_tags TYPE /AWS1/CL_CNTTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
it_allowedaccesscontroltags TYPE /AWS1/CL_CNTALLOWEDACCCTLTGS_W=>TT_ALLOWEDACCESSCONTROLTAGS TT_ALLOWEDACCESSCONTROLTAGS¶
The list of tags that a security profile uses to restrict access to resources in Amazon Connect.
it_tagrestrictedresources TYPE /AWS1/CL_CNTTAGRESTRICTEDRES00=>TT_TAGRESTRICTEDRESOURCELIST TT_TAGRESTRICTEDRESOURCELIST¶
The list of resources that a security profile applies tag restrictions to in Amazon Connect. For a list of Amazon Connect resources that you can tag, see Add tags to resources in Amazon Connect in the Amazon Connect Administrator Guide.
it_applications TYPE /AWS1/CL_CNTAPPLICATION=>TT_APPLICATIONS TT_APPLICATIONS¶
A list of third-party applications that the security profile will give access to.
it_hierarchyrestrictedresrcs TYPE /AWS1/CL_CNTHIERARCHYRESTRIC00=>TT_HIERARCHYRESTRICTEDRESRCLST TT_HIERARCHYRESTRICTEDRESRCLST¶
The list of resources that a security profile applies hierarchy restrictions to in Amazon Connect. Following are acceptable ResourceNames:
User.
iv_alwedaccctlhierarchygrpid TYPE /AWS1/CNTHIERARCHYGROUPID /AWS1/CNTHIERARCHYGROUPID¶
The identifier of the hierarchy group that a security profile uses to restrict access to resources in Amazon Connect.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cntcreatesecpflrsp /AWS1/CL_CNTCREATESECPFLRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->createsecurityprofile(
it_allowedaccesscontroltags = VALUE /aws1/cl_cntallowedaccctltgs_w=>tt_allowedaccesscontroltags(
(
VALUE /aws1/cl_cntallowedaccctltgs_w=>ts_allowedaccessctltags_maprow(
key = |string|
value = new /aws1/cl_cntallowedaccctltgs_w( |string| )
)
)
)
it_applications = VALUE /aws1/cl_cntapplication=>tt_applications(
(
new /aws1/cl_cntapplication(
it_applicationpermissions = VALUE /aws1/cl_cntapplicationperms_w=>tt_applicationpermissions(
( new /aws1/cl_cntapplicationperms_w( |string| ) )
)
iv_namespace = |string|
)
)
)
it_hierarchyrestrictedresrcs = VALUE /aws1/cl_cnthierarchyrestric00=>tt_hierarchyrestrictedresrclst(
( new /aws1/cl_cnthierarchyrestric00( |string| ) )
)
it_permissions = VALUE /aws1/cl_cntpermissionslist_w=>tt_permissionslist(
( new /aws1/cl_cntpermissionslist_w( |string| ) )
)
it_tagrestrictedresources = VALUE /aws1/cl_cnttagrestrictedres00=>tt_tagrestrictedresourcelist(
( new /aws1/cl_cnttagrestrictedres00( |string| ) )
)
it_tags = VALUE /aws1/cl_cnttagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_cnttagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_cnttagmap_w( |string| )
)
)
)
iv_alwedaccctlhierarchygrpid = |string|
iv_description = |string|
iv_instanceid = |string|
iv_securityprofilename = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_securityprofileid = lo_result->get_securityprofileid( ).
lv_arn = lo_result->get_securityprofilearn( ).
ENDIF.