diff --git a/docs/resources/sagemaker_user_profile.md b/docs/resources/sagemaker_user_profile.md index e3831d2a7..b760be6b0 100644 --- a/docs/resources/sagemaker_user_profile.md +++ b/docs/resources/sagemaker_user_profile.md @@ -1,5 +1,4 @@ --- -# generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_sagemaker_user_profile Resource - terraform-provider-awscc" subcategory: "" description: |- @@ -10,7 +9,19 @@ description: |- Resource Type definition for AWS::SageMaker::UserProfile - +## Example Usage + +To create a SageMaker user profile resource. +```terraform +resource "awscc_sagemaker_user_profile" "example" { + domain_id = awscc_sagemaker_domain.example.id + user_profile_name = "example" + tags = [{ + key = "Modified By" + value = "AWSCC" + }] +} +``` ## Schema diff --git a/examples/resources/awscc_sagemaker_user_profile/sagemaker_user_profile.tf b/examples/resources/awscc_sagemaker_user_profile/sagemaker_user_profile.tf new file mode 100644 index 000000000..7cb3ccca7 --- /dev/null +++ b/examples/resources/awscc_sagemaker_user_profile/sagemaker_user_profile.tf @@ -0,0 +1,8 @@ +resource "awscc_sagemaker_user_profile" "example" { + domain_id = awscc_sagemaker_domain.example.id + user_profile_name = "example" + tags = [{ + key = "Modified By" + value = "AWSCC" + }] +} \ No newline at end of file diff --git a/templates/resources/sagemaker_user_profile.md.tmpl b/templates/resources/sagemaker_user_profile.md.tmpl new file mode 100644 index 000000000..8285d92cf --- /dev/null +++ b/templates/resources/sagemaker_user_profile.md.tmpl @@ -0,0 +1,26 @@ +--- +page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" +subcategory: "" +description: |- +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +--- + +# {{.Name}} ({{.Type}}) + +{{ .Description | trimspace }} + +## Example Usage + +To create a SageMaker user profile resource. +{{ tffile (printf "examples/resources/%s/sagemaker_user_profile.tf" .Name)}} + +{{ .SchemaMarkdown | trimspace }} +{{- if .HasImport }} + +## Import + +Import is supported using the following syntax: + +{{ codefile "shell" .ImportFile }} + +{{- end }}