sdk/python/pulumi_azure_nextgen/devices/v20181201preview/list_iot_hub_resource_keys_for_key_name.py
def list_iot_hub_resource_keys_for_key_name(key_name: Optional[str] = None,
                                            resource_group_name: Optional[str] = None,
                                            resource_name: Optional[str] = None,
                                            opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListIotHubResourceKeysForKeyNameResult:
    """
    The properties of an IoT hub shared access policy.


    :param str key_name: The name of the shared access policy.
    :param str resource_group_name: The name of the resource group that contains the IoT hub.
    :param str resource_name: The name of the IoT hub.
    """
    __args__ = dict()
    __args__['keyName'] = key_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['resourceName'] = resource_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:devices/v20181201preview:listIotHubResourceKeysForKeyName', __args__, opts=opts, typ=ListIotHubResourceKeysForKeyNameResult).value

    return AwaitableListIotHubResourceKeysForKeyNameResult(
        key_name=__ret__.key_name,
        primary_key=__ret__.primary_key,
        rights=__ret__.rights,
        secondary_key=__ret__.secondary_key)

    The properties of an IoT hub shared access policy.


    :param str key_name: The name of the shared access policy.
    :param str resource_group_name: The name of the resource group that contains the IoT hub.
    :param str resource_name: The name of the IoT hub.
    
The properties of an IoT hub shared access policy.
The properties of an IoT hub shared access policy .
def list_iot_hub_resource_keys_for_key_name(key_name: Optional[str] = None,
                                            resource_group_name: Optional[str] = None,
                                            resource_name: Optional[str] = None,
                                            opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListIotHubResourceKeysForKeyNameResult:
    __args__ = dict()
    __args__['keyName'] = key_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['resourceName'] = resource_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:devices/v20181201preview:listIotHubResourceKeysForKeyName', __args__, opts=opts, typ=ListIotHubResourceKeysForKeyNameResult).value
    return AwaitableListIotHubResourceKeysForKeyNameResult(
        key_name=__ret__.key_name,
        primary_key=__ret__.primary_key,
        rights=__ret__.rights,
        secondary_key=__ret__.secondary_key)
def list_iot_hub_resource_keys_for_key_name ( key_name : Optional [ str ] = None , resource_group_name : Optional [ str ] = None , resource_name : Optional [ str ] = None , opts : Optional [ pulumi . InvokeOptions ] = None ) -> AwaitableListIotHubResourceKeysForKeyNameResult : __args__ = dict ( ) __args__ [ 'keyName' ] = key_name __args__ [ 'resourceGroupName' ] = resource_group_name __args__ [ 'resourceName' ] = resource_name if opts is None : opts = pulumi . InvokeOptions ( ) if opts . version is None : opts . version = _utilities . get_version ( ) __ret__ = pulumi . runtime . invoke ( 'azure-nextgen:devices/v20181201preview:listIotHubResourceKeysForKeyName' , __args__ , opts = opts , typ = ListIotHubResourceKeysForKeyNameResult ) . value return AwaitableListIotHubResourceKeysForKeyNameResult ( key_name = __ret__ . key_name , primary_key = __ret__ . primary_key , rights = __ret__ . rights , secondary_key = __ret__ . secondary_key )
The properties of an IoT hub shared access policy.
The properties of an IoT hub shared access policy .
"""
    The properties of an IoT hub shared access policy.


    :param str key_name: The name of the shared access policy.
    :param str resource_group_name: The name of the resource group that contains the IoT hub.
    :param str resource_name: The name of the IoT hub.
    """
key_name
Optional[str]
The name of the shared access policy.
The name of the shared access policy .
resource_group_name
Optional[str]
The name of the resource group that contains the IoT hub.
The name of the resource group that contains the IoT hub .
resource_name
Optional[str]
The name of the IoT hub.
The name of the IoT hub .
opts
Optional[pulumi.InvokeOptions]