aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/CreateHandler.java [83:109]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                        model.getDomainName(), model.getObjectTypeName()));
            } catch (BadRequestException e) {
                throw new CfnInvalidRequestException(e);
            } catch (ResourceNotFoundException e) {
                throw new CfnNotFoundException(e);
            } catch (InternalServerException e) {
                throw new CfnServiceInternalErrorException(e);
            } catch (Exception e) {
                throw new CfnGeneralServiceException(e);
            }

            final ResourceModel responseModel = ResourceModel.builder()
                    .domainName(model.getDomainName())
                    .allowProfileCreation(putProfileObjectTypeResponse.allowProfileCreation())
                    .createdAt(putProfileObjectTypeResponse.createdAt().toString())
                    .description(putProfileObjectTypeResponse.description())
                    .encryptionKey(putProfileObjectTypeResponse.encryptionKey())
                    .expirationDays(putProfileObjectTypeResponse.expirationDays())
                    .fields(Translator.mapFieldsToList(putProfileObjectTypeResponse.fields()))
                    .keys(Translator.mapKeysToList(putProfileObjectTypeResponse.keys()))
                    .lastUpdatedAt(putProfileObjectTypeResponse.lastUpdatedAt().toString())
                    .objectTypeName(putProfileObjectTypeResponse.objectTypeName())
                    .tags(Translator.mapTagsToList(putProfileObjectTypeResponse.tags()))
                    .templateId(putProfileObjectTypeResponse.templateId())
                    .build();

            return ProgressEvent.defaultSuccessHandler(responseModel);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/UpdateHandler.java [112:138]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                    model.getDomainName(), model.getObjectTypeName()));
        } catch (BadRequestException e) {
            throw new CfnInvalidRequestException(e);
        } catch (ResourceNotFoundException e) {
            throw new CfnNotFoundException(e);
        } catch (InternalServerException e) {
            throw new CfnServiceInternalErrorException(e);
        } catch (Exception e) {
            throw new CfnGeneralServiceException(e);
        }

        final ResourceModel responseModel = ResourceModel.builder()
                .domainName(model.getDomainName())
                .allowProfileCreation(putProfileObjectTypeResponse.allowProfileCreation())
                .createdAt(putProfileObjectTypeResponse.createdAt().toString())
                .description(putProfileObjectTypeResponse.description())
                .encryptionKey(putProfileObjectTypeResponse.encryptionKey())
                .expirationDays(putProfileObjectTypeResponse.expirationDays())
                .fields(Translator.mapFieldsToList(putProfileObjectTypeResponse.fields()))
                .keys(Translator.mapKeysToList(putProfileObjectTypeResponse.keys()))
                .lastUpdatedAt(putProfileObjectTypeResponse.lastUpdatedAt().toString())
                .objectTypeName(putProfileObjectTypeResponse.objectTypeName())
                .tags(Translator.mapTagsToList(putProfileObjectTypeResponse.tags()))
                .templateId(putProfileObjectTypeResponse.templateId())
                .build();

        return ProgressEvent.defaultSuccessHandler(responseModel);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



