# ErrorInfoProperty

Struct · External

An error that occurred during resource creation.

- Source: Generated at build time
- Type last changed: v2.174.0 · 4 Jan 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pcs as pcs } from 'aws-cdk-lib';
const errorInfoProperty: pcs.CfnQueue.ErrorInfoProperty = {
  code: 'code',
  message: 'message',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pcs as pcs

error_info_property = pcs.CfnQueue.ErrorInfoProperty(
    code="code",
    message="message"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pcs.*;

ErrorInfoProperty errorInfoProperty = ErrorInfoProperty.builder()
        .code("code")
        .message("message")
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.PCS;

var errorInfoProperty = new ErrorInfoProperty {
    Code = "code",
    Message = "message"
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

errorInfoProperty := &ErrorInfoProperty{
	Code: jsii.String("code"),
	Message: jsii.String("message"),
}
```

## Properties

- `code`: string — The short-form error code.

- `message`: string — The detailed error information.
