

from . import AWSObject, AWSProperty


class FederationParameters(AWSProperty):
    props = {
        "ApplicationCallBackURL": (str, False),
        "AttributeMap": (dict, False),
        "FederationProviderName": (str, False),
        "FederationURN": (str, False),
        "SamlMetadataDocument": (str, False),
        "SamlMetadataURL": (str, False),
    }


class Environment(AWSObject):
    resource_type = "AWS::FinSpace::Environment"

    props = {
        "Description": (str, False),
        "FederationMode": (str, False),
        "FederationParameters": (FederationParameters, False),
        "KmsKeyId": (str, False),
        "Name": (str, True),
    }



from . import AWSObject, AWSProperty


class FederationParameters(AWSProperty):
    props = {
        "ApplicationCallBackURL": (str, False),
        "AttributeMap": (dict, False),
        "FederationProviderName": (str, False),
        "FederationURN": (str, False),
        "SamlMetadataDocument": (str, False),
        "SamlMetadataURL": (str, False),
    }


class SuperuserParameters(AWSProperty):
    props = {
        "EmailAddress": (str, False),
        "FirstName": (str, False),
        "LastName": (str, False),
    }


class Environment(AWSObject):
    resource_type = "AWS::FinSpace::Environment"

    props = {
        "DataBundles": ([str], False),
        "Description": (str, False),
        "FederationMode": (str, False),
        "FederationParameters": (FederationParameters, False),
        "KmsKeyId": (str, False),
        "Name": (str, True),
        "SuperuserParameters": (SuperuserParameters, False),
    }

Update FinSpace per 2021-11-18 changes
Update FinSpace per 2021-11-18 changes

  
  
  from . import AWSObject, AWSProperty
  
  
  class FederationParameters(AWSProperty):
      props = {
          "ApplicationCallBackURL": (str, False),
          "AttributeMap": (dict, False),
          "FederationProviderName": (str, False),
          "FederationURN": (str, False),
          "SamlMetadataDocument": (str, False),
          "SamlMetadataURL": (str, False),
      }
  
  
+ class SuperuserParameters(AWSProperty):
+     props = {
+         "EmailAddress": (str, False),
+         "FirstName": (str, False),
+         "LastName": (str, False),
+     }
+ 
+ 
  class Environment(AWSObject):
      resource_type = "AWS::FinSpace::Environment"
  
      props = {
+         "DataBundles": ([str], False),
          "Description": (str, False),
          "FederationMode": (str, False),
          "FederationParameters": (FederationParameters, False),
          "KmsKeyId": (str, False),
          "Name": (str, True),
+         "SuperuserParameters": (SuperuserParameters, False),
      }
  
Update FinSpace per 2021-11-18 changes
## Code Before:


from . import AWSObject, AWSProperty


class FederationParameters(AWSProperty):
    props = {
        "ApplicationCallBackURL": (str, False),
        "AttributeMap": (dict, False),
        "FederationProviderName": (str, False),
        "FederationURN": (str, False),
        "SamlMetadataDocument": (str, False),
        "SamlMetadataURL": (str, False),
    }


class Environment(AWSObject):
    resource_type = "AWS::FinSpace::Environment"

    props = {
        "Description": (str, False),
        "FederationMode": (str, False),
        "FederationParameters": (FederationParameters, False),
        "KmsKeyId": (str, False),
        "Name": (str, True),
    }

## Instruction:
Update FinSpace per 2021-11-18 changes
## Code After:


from . import AWSObject, AWSProperty


class FederationParameters(AWSProperty):
    props = {
        "ApplicationCallBackURL": (str, False),
        "AttributeMap": (dict, False),
        "FederationProviderName": (str, False),
        "FederationURN": (str, False),
        "SamlMetadataDocument": (str, False),
        "SamlMetadataURL": (str, False),
    }


class SuperuserParameters(AWSProperty):
    props = {
        "EmailAddress": (str, False),
        "FirstName": (str, False),
        "LastName": (str, False),
    }


class Environment(AWSObject):
    resource_type = "AWS::FinSpace::Environment"

    props = {
        "DataBundles": ([str], False),
        "Description": (str, False),
        "FederationMode": (str, False),
        "FederationParameters": (FederationParameters, False),
        "KmsKeyId": (str, False),
        "Name": (str, True),
        "SuperuserParameters": (SuperuserParameters, False),
    }
