Skip to content

describe_dataset_group

describe_dataset_group(
    dataset_group_arn: Arn, *, config_overrides: Optional[forecastClientConfig] = None
) -> DescribeDatasetGroupResponse

Describes a dataset group created using the CreateDatasetGroup operation.

In addition to listing the parameters provided in the CreateDatasetGroup request, this operation includes the following properties:

  • DatasetArns - The datasets belonging to the group.

  • CreationTime

  • LastModificationTime

  • Status

Parameters:

  • dataset_group_arn (Arn) –

    The Amazon Resource Name (ARN) of the dataset group.

Raises:

  • InvalidInputException –

    We can't process the request because it includes an invalid value or a value that exceeds the valid range.

  • ResourceNotFoundException –

    We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_forecast/_services/forecast.py
def describe_dataset_group(
    self,
    dataset_group_arn: "capo_forecast.types.arn.Arn",
    *,
    config_overrides: Optional[forecastClientConfig] = None,
) -> "capo_forecast.types.describe_dataset_group_response.DescribeDatasetGroupResponse":
    """<p>Describes a dataset group created using the <a href="https://docs.aws.amazon.com/forecast/latest/dg/API_CreateDatasetGroup.html">CreateDatasetGroup</a> operation.</p> <p>In addition to listing the parameters provided in the <code>CreateDatasetGroup</code> request, this operation includes the following properties:</p> <ul> <li> <p> <code>DatasetArns</code> - The datasets belonging to the group.</p> </li> <li> <p> <code>CreationTime</code> </p> </li> <li> <p> <code>LastModificationTime</code> </p> </li> <li> <p> <code>Status</code> </p> </li> </ul>

    Args:
        dataset_group_arn: <p>The Amazon Resource Name (ARN) of the dataset group.</p>

    Raises:
        capo_forecast.errors.invalid_input_exception.InvalidInputException: <p>We can't process the request because it includes an invalid value or a value that exceeds the valid range.</p>
        capo_forecast.errors.resource_not_found_exception.ResourceNotFoundException: <p>We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.</p>
        capo_forecast.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_forecast.types.describe_dataset_group_request.DescribeDatasetGroupRequest]",
    ) -> OperationResponse[
        "capo_forecast.types.describe_dataset_group_response.DescribeDatasetGroupResponse"
    ]:
        import capo_forecast._operations.amazon_forecast.describe_dataset_group

        output, http_response = (
            capo_forecast._operations.amazon_forecast.describe_dataset_group.describe_dataset_group(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeDatasetGroup")
    )
    input_: capo_forecast.types.describe_dataset_group_request.DescribeDatasetGroupRequest = {
        "dataset_group_arn": dataset_group_arn
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output