sdk/python/pulumi_azure_nextgen/communication/v20200820preview/list_communication_service_keys.py
def list_communication_service_keys(communication_service_name: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListCommunicationServiceKeysResult:
    """
    A class representing the access keys of a CommunicationService.


    :param str communication_service_name: The name of the CommunicationService resource.
    :param str resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    """
    __args__ = dict()
    __args__['communicationServiceName'] = communication_service_name
    __args__['resourceGroupName'] = resource_group_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:communication/v20200820preview:listCommunicationServiceKeys', __args__, opts=opts, typ=ListCommunicationServiceKeysResult).value

    return AwaitableListCommunicationServiceKeysResult(
        primary_connection_string=__ret__.primary_connection_string,
        primary_key=__ret__.primary_key,
        secondary_connection_string=__ret__.secondary_connection_string,
        secondary_key=__ret__.secondary_key)

    A class representing the access keys of a CommunicationService.


    :param str communication_service_name: The name of the CommunicationService resource.
    :param str resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    
A class representing the access keys of a CommunicationService.
A class representing the access keys of a CommunicationService .
def list_communication_service_keys(communication_service_name: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListCommunicationServiceKeysResult:
    __args__ = dict()
    __args__['communicationServiceName'] = communication_service_name
    __args__['resourceGroupName'] = resource_group_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:communication/v20200820preview:listCommunicationServiceKeys', __args__, opts=opts, typ=ListCommunicationServiceKeysResult).value
    return AwaitableListCommunicationServiceKeysResult(
        primary_connection_string=__ret__.primary_connection_string,
        primary_key=__ret__.primary_key,
        secondary_connection_string=__ret__.secondary_connection_string,
        secondary_key=__ret__.secondary_key)
def list_communication_service_keys ( communication_service_name : Optional [ str ] = None , resource_group_name : Optional [ str ] = None , opts : Optional [ pulumi . InvokeOptions ] = None ) -> AwaitableListCommunicationServiceKeysResult : __args__ = dict ( ) __args__ [ 'communicationServiceName' ] = communication_service_name __args__ [ 'resourceGroupName' ] = resource_group_name if opts is None : opts = pulumi . InvokeOptions ( ) if opts . version is None : opts . version = _utilities . get_version ( ) __ret__ = pulumi . runtime . invoke ( 'azure-nextgen:communication/v20200820preview:listCommunicationServiceKeys' , __args__ , opts = opts , typ = ListCommunicationServiceKeysResult ) . value return AwaitableListCommunicationServiceKeysResult ( primary_connection_string = __ret__ . primary_connection_string , primary_key = __ret__ . primary_key , secondary_connection_string = __ret__ . secondary_connection_string , secondary_key = __ret__ . secondary_key )
A class representing the access keys of a CommunicationService.
A class representing the access keys of a CommunicationService .
"""
    A class representing the access keys of a CommunicationService.


    :param str communication_service_name: The name of the CommunicationService resource.
    :param str resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    """
communication_service_name
Optional[str]
The name of the CommunicationService resource.
The name of the CommunicationService resource .
resource_group_name
Optional[str]
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
opts
Optional[pulumi.InvokeOptions]