def get_origin_request_policy(id: Optional[str] = None, name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOriginRequestPolicyResult: """ ## Example Usage The following example below creates a CloudFront origin request policy. ```python import pulumi import pulumi_aws as aws example = aws.cloudfront.get_origin_request_policy(name="example-policy") ``` :param str id: The identifier for the origin request policy. :param str name: Unique name to identify the origin request policy. """ __args__ = dict() __args__['id'] = id __args__['name'] = name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke('aws:cloudfront/getOriginRequestPolicy:getOriginRequestPolicy', __args__, opts=opts, typ=GetOriginRequestPolicyResult).value return AwaitableGetOriginRequestPolicyResult( comment=__ret__.comment, cookies_configs=__ret__.cookies_configs, etag=__ret__.etag, headers_configs=__ret__.headers_configs, id=__ret__.id, name=__ret__.name, query_strings_configs=__ret__.query_strings_configs)
def get_service_endpoint_policy_definition( resource_group_name: Optional[str] = None, service_endpoint_policy_definition_name: Optional[str] = None, service_endpoint_policy_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetServiceEndpointPolicyDefinitionResult: """ Use this data source to access information about an existing resource. :param str resource_group_name: The name of the resource group. :param str service_endpoint_policy_definition_name: The name of the service endpoint policy definition name. :param str service_endpoint_policy_name: The name of the service endpoint policy name. """ __args__ = dict() __args__['resourceGroupName'] = resource_group_name __args__[ 'serviceEndpointPolicyDefinitionName'] = service_endpoint_policy_definition_name __args__['serviceEndpointPolicyName'] = service_endpoint_policy_name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure-nextgen:network/v20181201:getServiceEndpointPolicyDefinition', __args__, opts=opts, typ=GetServiceEndpointPolicyDefinitionResult).value return AwaitableGetServiceEndpointPolicyDefinitionResult( description=__ret__.description, etag=__ret__.etag, id=__ret__.id, name=__ret__.name, provisioning_state=__ret__.provisioning_state, service=__ret__.service, service_resources=__ret__.service_resources)
def get_policy_assignment(policy_assignment_name: Optional[str] = None, scope: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPolicyAssignmentResult: """ Use this data source to access information about an existing resource. :param str policy_assignment_name: The name of the policy assignment to get. :param str scope: The scope of the policy assignment. """ __args__ = dict() __args__['policyAssignmentName'] = policy_assignment_name __args__['scope'] = scope if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke('azure-nextgen:authorization/v20151001preview:getPolicyAssignment', __args__, opts=opts, typ=GetPolicyAssignmentResult).value return AwaitableGetPolicyAssignmentResult( display_name=__ret__.display_name, name=__ret__.name, policy_definition_id=__ret__.policy_definition_id, scope=__ret__.scope, type=__ret__.type)
def get_gallery( gallery_name: Optional[str] = None, resource_group_name: Optional[str] = None, select: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetGalleryResult: """ Use this data source to access information about an existing resource. :param str gallery_name: The name of the Shared Image Gallery. :param str resource_group_name: The name of the resource group. :param str select: The select expression to apply on the operation. """ __args__ = dict() __args__['galleryName'] = gallery_name __args__['resourceGroupName'] = resource_group_name __args__['select'] = select if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure-nextgen:compute/v20200930:getGallery', __args__, opts=opts, typ=GetGalleryResult).value return AwaitableGetGalleryResult( description=__ret__.description, identifier=__ret__.identifier, location=__ret__.location, name=__ret__.name, provisioning_state=__ret__.provisioning_state, sharing_profile=__ret__.sharing_profile, tags=__ret__.tags, type=__ret__.type)
def get_tag_at_scope( scope: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetTagAtScopeResult: """ Use this data source to access information about an existing resource. :param str scope: The resource scope. """ __args__ = dict() __args__['scope'] = scope if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure-nextgen:resources/latest:getTagAtScope', __args__, opts=opts, typ=GetTagAtScopeResult).value return AwaitableGetTagAtScopeResult(name=__ret__.name, properties=__ret__.properties, type=__ret__.type)
def get_express_route_circuit_connection(circuit_name: Optional[str] = None, connection_name: Optional[str] = None, peering_name: Optional[str] = None, resource_group_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetExpressRouteCircuitConnectionResult: """ Use this data source to access information about an existing resource. :param str circuit_name: The name of the express route circuit. :param str connection_name: The name of the express route circuit connection. :param str peering_name: The name of the peering. :param str resource_group_name: The name of the resource group. """ __args__ = dict() __args__['circuitName'] = circuit_name __args__['connectionName'] = connection_name __args__['peeringName'] = peering_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:network/v20200501:getExpressRouteCircuitConnection', __args__, opts=opts, typ=GetExpressRouteCircuitConnectionResult).value return AwaitableGetExpressRouteCircuitConnectionResult( address_prefix=__ret__.address_prefix, authorization_key=__ret__.authorization_key, circuit_connection_status=__ret__.circuit_connection_status, etag=__ret__.etag, express_route_circuit_peering=__ret__.express_route_circuit_peering, id=__ret__.id, ipv6_circuit_connection_config=__ret__.ipv6_circuit_connection_config, name=__ret__.name, peer_express_route_circuit_peering=__ret__.peer_express_route_circuit_peering, provisioning_state=__ret__.provisioning_state, type=__ret__.type)
def get_local_network_gateway( local_network_gateway_name: Optional[str] = None, resource_group_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetLocalNetworkGatewayResult: """ Use this data source to access information about an existing resource. :param str local_network_gateway_name: The name of the local network gateway. :param str resource_group_name: The name of the resource group. """ __args__ = dict() __args__['localNetworkGatewayName'] = local_network_gateway_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:network/v20160330:getLocalNetworkGateway', __args__, opts=opts, typ=GetLocalNetworkGatewayResult).value return AwaitableGetLocalNetworkGatewayResult( bgp_settings=__ret__.bgp_settings, etag=__ret__.etag, gateway_ip_address=__ret__.gateway_ip_address, id=__ret__.id, local_network_address_space=__ret__.local_network_address_space, location=__ret__.location, name=__ret__.name, provisioning_state=__ret__.provisioning_state, resource_guid=__ret__.resource_guid, tags=__ret__.tags, type=__ret__.type)
def list_web_application_settings(name: Optional[str] = None, resource_group_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListWebApplicationSettingsResult: """ Use this data source to access information about an existing resource. :param str name: Name of the app. :param str resource_group_name: Name of the resource group to which the resource belongs. """ __args__ = dict() __args__['name'] = 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:web/v20190801:listWebApplicationSettings', __args__, opts=opts, typ=ListWebApplicationSettingsResult).value return AwaitableListWebApplicationSettingsResult( id=__ret__.id, kind=__ret__.kind, name=__ret__.name, properties=__ret__.properties, type=__ret__.type)
def get_deployment_at_management_group_scope(deployment_name: Optional[str] = None, group_id: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDeploymentAtManagementGroupScopeResult: """ Use this data source to access information about an existing resource. :param str deployment_name: The name of the deployment. :param str group_id: The management group ID. """ __args__ = dict() __args__['deploymentName'] = deployment_name __args__['groupId'] = group_id if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke('azure-nextgen:management/latest:getDeploymentAtManagementGroupScope', __args__, opts=opts, typ=GetDeploymentAtManagementGroupScopeResult).value return AwaitableGetDeploymentAtManagementGroupScopeResult( location=__ret__.location, name=__ret__.name, properties=__ret__.properties, tags=__ret__.tags, type=__ret__.type)
def get_vpn_gateway( gateway_name: Optional[str] = None, resource_group_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetVpnGatewayResult: """ Use this data source to access information about an existing resource. :param str gateway_name: The name of the gateway. :param str resource_group_name: The resource group name of the VpnGateway. """ __args__ = dict() __args__['gatewayName'] = gateway_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:network/v20200501:getVpnGateway', __args__, opts=opts, typ=GetVpnGatewayResult).value return AwaitableGetVpnGatewayResult( bgp_settings=__ret__.bgp_settings, connections=__ret__.connections, etag=__ret__.etag, id=__ret__.id, location=__ret__.location, name=__ret__.name, provisioning_state=__ret__.provisioning_state, tags=__ret__.tags, type=__ret__.type, virtual_hub=__ret__.virtual_hub, vpn_gateway_scale_unit=__ret__.vpn_gateway_scale_unit)
def get_route( resource_group_name: Optional[str] = None, route_name: Optional[str] = None, route_table_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetRouteResult: """ Use this data source to access information about an existing resource. :param str resource_group_name: The name of the resource group. :param str route_name: The name of the route. :param str route_table_name: The name of the route table. """ __args__ = dict() __args__['resourceGroupName'] = resource_group_name __args__['routeName'] = route_name __args__['routeTableName'] = route_table_name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke('azure-nextgen:network/latest:getRoute', __args__, opts=opts, typ=GetRouteResult).value return AwaitableGetRouteResult( address_prefix=__ret__.address_prefix, etag=__ret__.etag, has_bgp_override=__ret__.has_bgp_override, id=__ret__.id, name=__ret__.name, next_hop_ip_address=__ret__.next_hop_ip_address, next_hop_type=__ret__.next_hop_type, provisioning_state=__ret__.provisioning_state, type=__ret__.type)
def get_dimension_values( query: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetDimensionValuesResult: """ Use this data source to get a list of dimension values matching the provided query. > **NOTE** This data source only allows 1000 values, as it's kinda nuts to make anything with `for_each` that big in SignalFx. This is negotiable. """ __args__ = dict() __args__['query'] = query if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'signalfx:index/getDimensionValues:getDimensionValues', __args__, opts=opts, typ=GetDimensionValuesResult).value return AwaitableGetDimensionValuesResult(id=__ret__.id, query=__ret__.query, values=__ret__.values)
def get_group(api_management_name=None, name=None, resource_group_name=None, opts=None): """ Use this data source to access information about an existing API Management Group. :param str api_management_name: The Name of the API Management Service in which this Group exists. :param str name: The Name of the API Management Group. :param str resource_group_name: The Name of the Resource Group in which the API Management Service exists. """ __args__ = dict() __args__['apiManagementName'] = api_management_name __args__['name'] = 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:apimanagement/getGroup:getGroup', __args__, opts=opts).value return AwaitableGetGroupResult( api_management_name=__ret__.get('apiManagementName'), description=__ret__.get('description'), display_name=__ret__.get('displayName'), external_id=__ret__.get('externalId'), id=__ret__.get('id'), name=__ret__.get('name'), resource_group_name=__ret__.get('resourceGroupName'), type=__ret__.get('type'))
def get_policy_defintion(display_name=None, management_group_id=None, opts=None): """ Use this data source to access information about a Policy Definition, both custom and built in. Retrieves Policy Definitions from your current subscription by default. :param str display_name: Specifies the name of the Policy Definition. :param str management_group_id: Only retrieve Policy Definitions from this Management Group. """ __args__ = dict() __args__['displayName'] = display_name __args__['managementGroupId'] = management_group_id if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure:policy/getPolicyDefintion:getPolicyDefintion', __args__, opts=opts).value return AwaitableGetPolicyDefintionResult( description=__ret__.get('description'), display_name=__ret__.get('displayName'), id=__ret__.get('id'), management_group_id=__ret__.get('managementGroupId'), metadata=__ret__.get('metadata'), name=__ret__.get('name'), parameters=__ret__.get('parameters'), policy_rule=__ret__.get('policyRule'), policy_type=__ret__.get('policyType'), type=__ret__.get('type'))
def get_actions_public_key( repository: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetActionsPublicKeyResult: """ Use this data source to retrieve information about a GitHub Actions public key. This data source is required to be used with other GitHub secrets interactions. Note that the provider `token` must have admin rights to a repository to retrieve it's action public key. ## Example Usage ```python import pulumi import pulumi_github as github example = github.get_actions_public_key(repository="example_repo") ``` :param str repository: Name of the repository to get public key from. """ __args__ = dict() __args__['repository'] = repository if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'github:index/getActionsPublicKey:getActionsPublicKey', __args__, opts=opts, typ=GetActionsPublicKeyResult).value return AwaitableGetActionsPublicKeyResult(id=__ret__.id, key=__ret__.key, key_id=__ret__.key_id, repository=__ret__.repository)
def get_route_filter_rule( resource_group_name: Optional[str] = None, route_filter_name: Optional[str] = None, rule_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetRouteFilterRuleResult: """ Use this data source to access information about an existing resource. :param str resource_group_name: The name of the resource group. :param str route_filter_name: The name of the route filter. :param str rule_name: The name of the rule. """ __args__ = dict() __args__['resourceGroupName'] = resource_group_name __args__['routeFilterName'] = route_filter_name __args__['ruleName'] = rule_name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure-nextgen:network/v20180801:getRouteFilterRule', __args__, opts=opts, typ=GetRouteFilterRuleResult).value return AwaitableGetRouteFilterRuleResult( access=__ret__.access, communities=__ret__.communities, etag=__ret__.etag, id=__ret__.id, location=__ret__.location, name=__ret__.name, provisioning_state=__ret__.provisioning_state, route_filter_rule_type=__ret__.route_filter_rule_type)
def get_protection_intent( fabric_name: Optional[str] = None, intent_object_name: Optional[str] = None, resource_group_name: Optional[str] = None, vault_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetProtectionIntentResult: """ Use this data source to access information about an existing resource. :param str fabric_name: Fabric name associated with the backed up item. :param str intent_object_name: Backed up item name whose details are to be fetched. :param str resource_group_name: The name of the resource group where the recovery services vault is present. :param str vault_name: The name of the recovery services vault. """ __args__ = dict() __args__['fabricName'] = fabric_name __args__['intentObjectName'] = intent_object_name __args__['resourceGroupName'] = resource_group_name __args__['vaultName'] = vault_name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure-nextgen:recoveryservices/v20170701:getProtectionIntent', __args__, opts=opts, typ=GetProtectionIntentResult).value return AwaitableGetProtectionIntentResult(e_tag=__ret__.e_tag, location=__ret__.location, name=__ret__.name, properties=__ret__.properties, tags=__ret__.tags, type=__ret__.type)
def get_regions( filters: Optional[Sequence[ pulumi.InputType['GetRegionsFilterArgs']]] = None, sorts: Optional[Sequence[ pulumi.InputType['GetRegionsSortArgs']]] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetRegionsResult: """ Retrieve information about all supported DigitalOcean regions, with the ability to filter and sort the results. If no filters are specified, all regions will be returned. Note: You can use the `getRegion` data source to obtain metadata about a single region if you already know the `slug` to retrieve. :param Sequence[pulumi.InputType['GetRegionsFilterArgs']] filters: Filter the results. The `filter` block is documented below. :param Sequence[pulumi.InputType['GetRegionsSortArgs']] sorts: Sort the results. The `sort` block is documented below. """ __args__ = dict() __args__['filters'] = filters __args__['sorts'] = sorts if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke('digitalocean:index/getRegions:getRegions', __args__, opts=opts, typ=GetRegionsResult).value return AwaitableGetRegionsResult(filters=__ret__.filters, id=__ret__.id, regions=__ret__.regions, sorts=__ret__.sorts)
def get_registered_prefix( peering_name: Optional[str] = None, registered_prefix_name: Optional[str] = None, resource_group_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetRegisteredPrefixResult: """ Use this data source to access information about an existing resource. :param str peering_name: The name of the peering. :param str registered_prefix_name: The name of the registered prefix. :param str resource_group_name: The name of the resource group. """ __args__ = dict() __args__['peeringName'] = peering_name __args__['registeredPrefixName'] = registered_prefix_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:peering/v20200101preview:getRegisteredPrefix', __args__, opts=opts, typ=GetRegisteredPrefixResult).value return AwaitableGetRegisteredPrefixResult( error_message=__ret__.error_message, id=__ret__.id, name=__ret__.name, peering_service_prefix_key=__ret__.peering_service_prefix_key, prefix=__ret__.prefix, prefix_validation_state=__ret__.prefix_validation_state, provisioning_state=__ret__.provisioning_state, type=__ret__.type)
def get_user_pools(name=None, opts=None): """ Use this data source to get a list of cognito user pools. ## Example Usage ```python import pulumi import pulumi_aws as aws selected_rest_api = aws.apigateway.get_rest_api(name=var["api_gateway_name"]) selected_user_pools = aws.cognito.get_user_pools(name=var["cognito_user_pool_name"]) cognito = aws.apigateway.Authorizer("cognito", provider_arns=selected_user_pools.arns, rest_api=selected_rest_api.id, type="COGNITO_USER_POOLS") ``` :param str name: Name of the cognito user pools. Name is not a unique attribute for cognito user pool, so multiple pools might be returned with given name. """ __args__ = dict() __args__['name'] = name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = utilities.get_version() __ret__ = pulumi.runtime.invoke('aws:cognito/getUserPools:getUserPools', __args__, opts=opts).value return AwaitableGetUserPoolsResult(arns=__ret__.get('arns'), id=__ret__.get('id'), ids=__ret__.get('ids'), name=__ret__.get('name'))
def get_site_source_control( name: Optional[str] = None, resource_group_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetSiteSourceControlResult: """ Use this data source to access information about an existing resource. :param str name: Name of web app :param str resource_group_name: Name of resource group """ __args__ = dict() __args__['name'] = 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:web/v20150801:getSiteSourceControl', __args__, opts=opts, typ=GetSiteSourceControlResult).value return AwaitableGetSiteSourceControlResult( branch=__ret__.branch, deployment_rollback_enabled=__ret__.deployment_rollback_enabled, id=__ret__.id, is_manual_integration=__ret__.is_manual_integration, is_mercurial=__ret__.is_mercurial, kind=__ret__.kind, location=__ret__.location, name=__ret__.name, repo_url=__ret__.repo_url, tags=__ret__.tags, type=__ret__.type)
def get_machine_learning_compute( compute_name: Optional[str] = None, resource_group_name: Optional[str] = None, workspace_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetMachineLearningComputeResult: """ Use this data source to access information about an existing resource. :param str compute_name: Name of the Azure Machine Learning compute. :param str resource_group_name: Name of the resource group in which workspace is located. :param str workspace_name: Name of Azure Machine Learning workspace. """ __args__ = dict() __args__['computeName'] = compute_name __args__['resourceGroupName'] = resource_group_name __args__['workspaceName'] = workspace_name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure-nextgen:machinelearningservices/v20200515preview:getMachineLearningCompute', __args__, opts=opts, typ=GetMachineLearningComputeResult).value return AwaitableGetMachineLearningComputeResult( id=__ret__.id, identity=__ret__.identity, location=__ret__.location, name=__ret__.name, properties=__ret__.properties, sku=__ret__.sku, tags=__ret__.tags, type=__ret__.type)
def get_role_definition(name=None, role_definition_id=None, scope=None, opts=None): """ Use this data source to access information about an existing Role Definition. :param str name: Specifies the Name of either a built-in or custom Role Definition. :param str role_definition_id: Specifies the ID of the Role Definition as a UUID/GUID. :param str scope: Specifies the Scope at which the Custom Role Definition exists. > This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/d/role_definition.html.markdown. """ __args__ = dict() __args__['name'] = name __args__['roleDefinitionId'] = role_definition_id __args__['scope'] = scope if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure:authorization/getRoleDefinition:getRoleDefinition', __args__, opts=opts).value return AwaitableGetRoleDefinitionResult( assignable_scopes=__ret__.get('assignableScopes'), description=__ret__.get('description'), name=__ret__.get('name'), permissions=__ret__.get('permissions'), role_definition_id=__ret__.get('roleDefinitionId'), scope=__ret__.get('scope'), type=__ret__.get('type'), id=__ret__.get('id'))
def get_route_filter( expand: Optional[str] = None, resource_group_name: Optional[str] = None, route_filter_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetRouteFilterResult: """ Use this data source to access information about an existing resource. :param str expand: Expands referenced express route bgp peering resources. :param str resource_group_name: The name of the resource group. :param str route_filter_name: The name of the route filter. """ __args__ = dict() __args__['expand'] = expand __args__['resourceGroupName'] = resource_group_name __args__['routeFilterName'] = route_filter_name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure-nextgen:network/v20190201:getRouteFilter', __args__, opts=opts, typ=GetRouteFilterResult).value return AwaitableGetRouteFilterResult( etag=__ret__.etag, location=__ret__.location, name=__ret__.name, peerings=__ret__.peerings, provisioning_state=__ret__.provisioning_state, rules=__ret__.rules, tags=__ret__.tags, type=__ret__.type)
def get_zones( output_file: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetZonesResult: """ This data source provides the available zones with the Time Series Database (TSDB) Instance of the current Alibaba Cloud user. > **NOTE:** Available in v1.112.0+. ## Example Usage Basic Usage ```python import pulumi import pulumi_alicloud as alicloud example = alicloud.tsdb.get_zones() pulumi.export("firstTsdbZonesId", example.zones[0].zone_id) ``` """ __args__ = dict() __args__['outputFile'] = output_file if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke('alicloud:tsdb/getZones:getZones', __args__, opts=opts, typ=GetZonesResult).value return AwaitableGetZonesResult(id=__ret__.id, ids=__ret__.ids, output_file=__ret__.output_file, zones=__ret__.zones)
def get_hub_route_table( resource_group_name: Optional[str] = None, route_table_name: Optional[str] = None, virtual_hub_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetHubRouteTableResult: """ Use this data source to access information about an existing resource. :param str resource_group_name: The resource group name of the VirtualHub. :param str route_table_name: The name of the RouteTable. :param str virtual_hub_name: The name of the VirtualHub. """ __args__ = dict() __args__['resourceGroupName'] = resource_group_name __args__['routeTableName'] = route_table_name __args__['virtualHubName'] = virtual_hub_name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure-nextgen:network/v20200601:getHubRouteTable', __args__, opts=opts, typ=GetHubRouteTableResult).value return AwaitableGetHubRouteTableResult( associated_connections=__ret__.associated_connections, etag=__ret__.etag, labels=__ret__.labels, name=__ret__.name, propagating_connections=__ret__.propagating_connections, provisioning_state=__ret__.provisioning_state, routes=__ret__.routes, type=__ret__.type)
def list_saas_resource_access_token( resource_id: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableListSaasResourceAccessTokenResult: """ Use this data source to access information about an existing resource. :param str resource_id: The Saas resource ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) """ __args__ = dict() __args__['resourceId'] = resource_id if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure-nextgen:saas/v20180301beta:listSaasResourceAccessToken', __args__, opts=opts, typ=ListSaasResourceAccessTokenResult).value return AwaitableListSaasResourceAccessTokenResult( publisher_offer_base_uri=__ret__.publisher_offer_base_uri, token=__ret__.token)
def get_web_app_private_endpoint_connection( name: Optional[str] = None, private_endpoint_connection_name: Optional[str] = None, resource_group_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetWebAppPrivateEndpointConnectionResult: """ Use this data source to access information about an existing resource. :param str name: Name of the site. :param str resource_group_name: Name of the resource group to which the resource belongs. """ __args__ = dict() __args__['name'] = name __args__[ 'privateEndpointConnectionName'] = private_endpoint_connection_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:web/v20190801:getWebAppPrivateEndpointConnection', __args__, opts=opts, typ=GetWebAppPrivateEndpointConnectionResult).value return AwaitableGetWebAppPrivateEndpointConnectionResult( id=__ret__.id, kind=__ret__.kind, name=__ret__.name, private_endpoint=__ret__.private_endpoint, private_link_service_connection_state=__ret__. private_link_service_connection_state, provisioning_state=__ret__.provisioning_state, type=__ret__.type)
def get_server( resource_group_name: Optional[str] = None, server_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None ) -> AwaitableGetServerResult: """ Use this data source to access information about an existing 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. :param str server_name: The name of the server. """ __args__ = dict() __args__['resourceGroupName'] = resource_group_name __args__['serverName'] = server_name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke('azure-nextgen:sql/latest:getServer', __args__, opts=opts, typ=GetServerResult).value return AwaitableGetServerResult( administrator_login=__ret__.administrator_login, administrator_login_password=__ret__.administrator_login_password, external_administrator_login=__ret__.external_administrator_login, external_administrator_sid=__ret__.external_administrator_sid, fully_qualified_domain_name=__ret__.fully_qualified_domain_name, kind=__ret__.kind, location=__ret__.location, name=__ret__.name, state=__ret__.state, tags=__ret__.tags, type=__ret__.type, version=__ret__.version)
def get_task( expand: Optional[str] = None, group_name: Optional[str] = None, project_name: Optional[str] = None, service_name: Optional[str] = None, task_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTaskResult: """ Use this data source to access information about an existing resource. :param str expand: Expand the response :param str group_name: Name of the resource group :param str project_name: Name of the project :param str service_name: Name of the service :param str task_name: Name of the Task """ __args__ = dict() __args__['expand'] = expand __args__['groupName'] = group_name __args__['projectName'] = project_name __args__['serviceName'] = service_name __args__['taskName'] = task_name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke( 'azure-nextgen:datamigration/v20171115preview:getTask', __args__, opts=opts, typ=GetTaskResult).value return AwaitableGetTaskResult(etag=__ret__.etag, name=__ret__.name, properties=__ret__.properties, type=__ret__.type)