

 Amazon Forecast non è più disponibile per i nuovi clienti. I clienti esistenti di Amazon Forecast possono continuare a utilizzare il servizio normalmente. [Scopri di più»](https://aws.amazon.com/blogs/machine-learning/transition-your-amazon-forecast-usage-to-amazon-sagemaker-canvas/)

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

# DescribeWhatIfForecast
<a name="API_DescribeWhatIfForecast"></a>

Descrive la previsione what-if creata utilizzando l'[CreateWhatIfForecast](API_CreateWhatIfForecast.md)operazione.

**Importante**  
Amazon Forecast non è più disponibile per i nuovi clienti. I clienti esistenti di Amazon Forecast possono continuare a utilizzare il servizio normalmente. [Scopri di più»](https://aws.amazon.com/blogs/machine-learning/transition-your-amazon-forecast-usage-to-amazon-sagemaker-canvas/) 

Oltre a elencare le proprietà fornite nella `CreateWhatIfForecast` richiesta, questa operazione elenca le seguenti proprietà:
+  `CreationTime` 
+  `LastModificationTime` 
+  `Message`- Se si è verificato un errore, informazioni sull'errore.
+  `Status` 

## Sintassi della richiesta
<a name="API_DescribeWhatIfForecast_RequestSyntax"></a>

```
{
   "WhatIfForecastArn": "string"
}
```

## Parametri della richiesta
<a name="API_DescribeWhatIfForecast_RequestParameters"></a>

La richiesta accetta i seguenti dati in formato JSON.

 ** [WhatIfForecastArn](#API_DescribeWhatIfForecast_RequestSyntax) **   <a name="forecast-DescribeWhatIfForecast-request-WhatIfForecastArn"></a>
L'Amazon Resource Name (ARN) della previsione what-if che ti interessa.  
Tipo: String  
Limiti di lunghezza: lunghezza massima di 300.  
Modello: `arn:([a-z\d-]+):forecast:.*:.*:.+`   
Obbligatorio: sì

## Sintassi della risposta
<a name="API_DescribeWhatIfForecast_ResponseSyntax"></a>

```
{
   "CreationTime": number,
   "EstimatedTimeRemainingInMinutes": number,
   "ForecastTypes": [ "string" ],
   "LastModificationTime": number,
   "Message": "string",
   "Status": "string",
   "TimeSeriesReplacementsDataSource": { 
      "Format": "string",
      "S3Config": { 
         "KMSKeyArn": "string",
         "Path": "string",
         "RoleArn": "string"
      },
      "Schema": { 
         "Attributes": [ 
            { 
               "AttributeName": "string",
               "AttributeType": "string"
            }
         ]
      },
      "TimestampFormat": "string"
   },
   "TimeSeriesTransformations": [ 
      { 
         "Action": { 
            "AttributeName": "string",
            "Operation": "string",
            "Value": number
         },
         "TimeSeriesConditions": [ 
            { 
               "AttributeName": "string",
               "AttributeValue": "string",
               "Condition": "string"
            }
         ]
      }
   ],
   "WhatIfAnalysisArn": "string",
   "WhatIfForecastArn": "string",
   "WhatIfForecastName": "string"
}
```

## Elementi di risposta
<a name="API_DescribeWhatIfForecast_ResponseElements"></a>

Se l'operazione riesce, il servizio restituisce una risposta HTTP 200.

I dati seguenti vengono restituiti in formato JSON mediante il servizio.

 ** [CreationTime](#API_DescribeWhatIfForecast_ResponseSyntax) **   <a name="forecast-DescribeWhatIfForecast-response-CreationTime"></a>
Quando è stata creata la previsione ipotetica.  
Tipo: Timestamp

 ** [EstimatedTimeRemainingInMinutes](#API_DescribeWhatIfForecast_ResponseSyntax) **   <a name="forecast-DescribeWhatIfForecast-response-EstimatedTimeRemainingInMinutes"></a>
Il tempo approssimativo rimanente per completare la previsione ipotetica, in minuti.  
Tipo: long

 ** [ForecastTypes](#API_DescribeWhatIfForecast_ResponseSyntax) **   <a name="forecast-DescribeWhatIfForecast-response-ForecastTypes"></a>
I quantili in base ai quali vengono generate le previsioni probabilistiche. È possibile specificare fino a cinque quantili per ogni previsione ipotetica dell'operazione. [CreateWhatIfForecast](API_CreateWhatIfForecast.md) Se non hai specificato i quantili, i valori predefiniti sono. `["0.1", "0.5", "0.9"]`   
Tipo: array di stringhe  
Membri dell’array: numero minimo di 1 elemento. Numero massimo di 20 elementi.  
Vincoli di lunghezza: lunghezza minima di 2. La lunghezza massima è 4 caratteri.  
Modello: `(^0?\.\d\d?$|^mean$)` 

 ** [LastModificationTime](#API_DescribeWhatIfForecast_ResponseSyntax) **   <a name="forecast-DescribeWhatIfForecast-response-LastModificationTime"></a>
L'ultima volta che la risorsa è stata modificata. Il timestamp dipende dallo stato del lavoro:  
+  `CREATE_PENDING`- Il. `CreationTime`
+  `CREATE_IN_PROGRESS`- Il timestamp corrente.
+  `CREATE_STOPPING`- Il timestamp corrente.
+  `CREATE_STOPPED`- Quando il lavoro si è interrotto.
+  `ACTIVE`oppure `CREATE_FAILED` - Quando il lavoro è terminato o non è riuscito.
Tipo: Timestamp

 ** [Message](#API_DescribeWhatIfForecast_ResponseSyntax) **   <a name="forecast-DescribeWhatIfForecast-response-Message"></a>
Se si è verificato un errore, un messaggio informativo sull'errore.  
Tipo: String

 ** [Status](#API_DescribeWhatIfForecast_ResponseSyntax) **   <a name="forecast-DescribeWhatIfForecast-response-Status"></a>
Lo stato della previsione ipotetica. Gli stati includono:  
+  `ACTIVE` 
+  `CREATE_PENDING`, `CREATE_IN_PROGRESS`, `CREATE_FAILED` 
+  `CREATE_STOPPING`, `CREATE_STOPPED` 
+  `DELETE_PENDING`, `DELETE_IN_PROGRESS`, `DELETE_FAILED` 
La `Status` previsione ipotetica deve avvenire `ACTIVE` prima di poter accedere alla previsione.
Tipo: String  
Limitazioni di lunghezza: lunghezza massima di 256.  
Modello: `^[a-zA-Z0-9\_]+$` 

 ** [TimeSeriesReplacementsDataSource](#API_DescribeWhatIfForecast_ResponseSyntax) **   <a name="forecast-DescribeWhatIfForecast-response-TimeSeriesReplacementsDataSource"></a>
Una matrice di `S3Config` ed `Format` elementi che descrivono le serie temporali sostitutive. `Schema`  
Tipo: oggetto [TimeSeriesReplacementsDataSource](API_TimeSeriesReplacementsDataSource.md)

 ** [TimeSeriesTransformations](#API_DescribeWhatIfForecast_ResponseSyntax) **   <a name="forecast-DescribeWhatIfForecast-response-TimeSeriesTransformations"></a>
Una serie di `Action` `TimeSeriesConditions` elementi che descrivono quali trasformazioni sono state applicate a quali serie temporali.  
Tipo: matrice di oggetti [TimeSeriesTransformation](API_TimeSeriesTransformation.md)  
Membri dell'array: numero minimo di 0 elementi. Numero massimo di 30 articoli.

 ** [WhatIfAnalysisArn](#API_DescribeWhatIfForecast_ResponseSyntax) **   <a name="forecast-DescribeWhatIfForecast-response-WhatIfAnalysisArn"></a>
L'Amazon Resource Name (ARN) dell'analisi what-if che contiene questa previsione.  
Tipo: String  
Limitazioni di lunghezza: lunghezza massima di 256.  
Modello: `arn:([a-z\d-]+):forecast:.*:.*:.+` 

 ** [WhatIfForecastArn](#API_DescribeWhatIfForecast_ResponseSyntax) **   <a name="forecast-DescribeWhatIfForecast-response-WhatIfForecastArn"></a>
L'Amazon Resource Name (ARN) della previsione what-if.  
Tipo: String  
Vincoli di lunghezza: lunghezza massima di 300.  
Modello: `arn:([a-z\d-]+):forecast:.*:.*:.+` 

 ** [WhatIfForecastName](#API_DescribeWhatIfForecast_ResponseSyntax) **   <a name="forecast-DescribeWhatIfForecast-response-WhatIfForecastName"></a>
Il nome della previsione ipotetica.  
Tipo: String  
Limitazioni di lunghezza: lunghezza minima pari a 1. La lunghezza massima è 63 caratteri.  
Modello: `^[a-zA-Z][a-zA-Z0-9_]*` 

## Errori
<a name="API_DescribeWhatIfForecast_Errors"></a>

 ** InvalidInputException **   
Non possiamo elaborare la richiesta perché include un valore non valido o un valore che supera l'intervallo valido.  
Codice di stato HTTP: 400

 ** ResourceNotFoundException **   
Non riusciamo a trovare una risorsa con questo Amazon Resource Name (ARN). Controlla l'ARN e riprova.  
Codice di stato HTTP: 400

## Vedi anche
<a name="API_DescribeWhatIfForecast_SeeAlso"></a>

Per ulteriori informazioni sull'utilizzo di questa API in una delle lingue specifiche AWS SDKs, consulta quanto segue:
+  [AWS Interfaccia a riga di comando V2](https://docs.aws.amazon.com/goto/cli2/forecast-2018-06-26/DescribeWhatIfForecast) 
+  [AWS SDK per.NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/forecast-2018-06-26/DescribeWhatIfForecast) 
+  [AWS SDK per C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/forecast-2018-06-26/DescribeWhatIfForecast) 
+  [AWS SDK per Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/forecast-2018-06-26/DescribeWhatIfForecast) 
+  [AWS SDK per Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/forecast-2018-06-26/DescribeWhatIfForecast) 
+  [AWS SDK per V3 JavaScript ](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/forecast-2018-06-26/DescribeWhatIfForecast) 
+  [AWS SDK per Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/forecast-2018-06-26/DescribeWhatIfForecast) 
+  [AWS SDK per PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/forecast-2018-06-26/DescribeWhatIfForecast) 
+  [AWS SDK per Python](https://docs.aws.amazon.com/goto/boto3/forecast-2018-06-26/DescribeWhatIfForecast) 
+  [AWS SDK per Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/forecast-2018-06-26/DescribeWhatIfForecast) 